* parse.y (nested_name_specifier_1): Pull out the TYPE_MAIN_VARIANT.
authorJason Merrill <jason@yorick.cygnus.com>
Fri, 24 Jul 1998 14:51:54 +0000 (14:51 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 24 Jul 1998 14:51:54 +0000 (10:51 -0400)
From-SVN: r21364

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

index 7a479dd7bbc1eef6d498ea025c92371cc27999e3..127c8e9998c0c492d9f4d0a1f7b0abee1f27502d 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 085e87b372c21c4fd2aefcf87b3688dc9258ce5f..04e517f7c30bd2b762f6ace8421e814e38c84d29 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 2dab9f0a241e739a2536f64e7a0076b3adebe542..c5acf27b22bfe3f145ec7f48d70fdebc94519d82 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
                {