diff options
author | Jason Merrill <jason@yorick.cygnus.com> | 1998-08-20 02:54:29 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1998-08-19 22:54:29 -0400 |
commit | eab049e2f69164e5fc4e91e11b523a13b3fae7a9 (patch) | |
tree | 79c714f8b6abf230e61e19a74e67505ff137bd4e /gcc | |
parent | 7688e2e244d3065366e2a9d222dad61f0fcd45d9 (diff) | |
download | gcc-eab049e2f69164e5fc4e91e11b523a13b3fae7a9.zip gcc-eab049e2f69164e5fc4e91e11b523a13b3fae7a9.tar.gz gcc-eab049e2f69164e5fc4e91e11b523a13b3fae7a9.tar.bz2 |
* parse.y (notype_unqualified_id): Also accept ~A<int>.
From-SVN: r21870
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/parse.y | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 7cd9e51..797531e 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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 diff --git a/gcc/cp/parse.y b/gcc/cp/parse.y index e9551cc..4e64b20 100644 --- a/gcc/cp/parse.y +++ b/gcc/cp/parse.y @@ -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 |