OSDN Git Service

* parse.y (nested_name_specifier_1): Pull out the TYPE_MAIN_VARIANT.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Jul 1998 14:51:54 +0000 (14:51 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Jul 1998 14:51:54 +0000 (14:51 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21364 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/parse.c
gcc/cp/parse.y

index 7a479dd..127c8e9 100644 (file)
@@ -1,5 +1,7 @@
 1998-07-24  Jason Merrill  <jason@yorick.cygnus.com>
 
+       * parse.y (nested_name_specifier_1): Pull out the TYPE_MAIN_VARIANT.
+
        * pt.c (coerce_template_parms): Also complain about local enums.
 
        * cp-tree.h: Add prototype for set_identifier_local_value.
index 085e87b..04e517f 100644 (file)
@@ -6796,7 +6796,7 @@ case 623:
                          && ! IDENTIFIER_CLASS_VALUE (yyvsp[-1].ttype))
                        pushdecl_class_level (yyval.ttype);
                    }
-                 got_scope = yyval.ttype = TREE_TYPE (yyval.ttype);
+                 got_scope = yyval.ttype = TYPE_MAIN_VARIANT (TREE_TYPE (yyval.ttype));
                ;
     break;}
 case 624:
index 2dab9f0..c5acf27 100644 (file)
@@ -2897,7 +2897,7 @@ nested_name_specifier_1:
                          && ! IDENTIFIER_CLASS_VALUE ($1))
                        pushdecl_class_level ($$);
                    }
-                 got_scope = $$ = TREE_TYPE ($$);
+                 got_scope = $$ = TYPE_MAIN_VARIANT (TREE_TYPE ($$));
                }
        | SELFNAME SCOPE
                {