* parse.y (notype_unqualified_id): Also accept ~A<int>.
authorJason Merrill <jason@yorick.cygnus.com>
Thu, 20 Aug 1998 02:54:29 +0000 (02:54 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 20 Aug 1998 02:54:29 +0000 (22:54 -0400)
From-SVN: r21870

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

index 7cd9e51bcd96a339eb37d589d58d677677612702..797531e59bd39b114a5c100a540d001f1dad28f2 100644 (file)
@@ -1,3 +1,7 @@
+1998-08-20  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * parse.y (notype_unqualified_id): Also accept ~A<int>.
+
 1998-08-19  Mark Mitchell  <mark@markmitchell.com>
 
        * typeck.c (build_binary_op_nodefault): Warn on use of NULL in
index e9551ccc330ee7cf071a3637216602468d784eca..4e64b20bd5e7c8ba84421dafb308015d0e878254 100644 (file)
@@ -1279,6 +1279,8 @@ expr_no_commas:
 notype_unqualified_id:
          '~' see_typename identifier
                { $$ = build_parse_node (BIT_NOT_EXPR, $3); }
+       | '~' see_typename template_type
+               { $$ = build_parse_node (BIT_NOT_EXPR, $3); }
         | template_id
        | operator_name
        | IDENTIFIER