re PR c++/14550 (trouble with pointers in templates)
authorMark Mitchell <mark@codesourcery.com>
Mon, 15 Mar 2004 16:16:18 +0000 (16:16 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 15 Mar 2004 16:16:18 +0000 (16:16 +0000)
commit625cbf9318915e406776ab23a21fbb7093889c7a
tree6ca3ec63bda60cceb911971973b8af475954de44
parent983e64842fe8236e78dc11f6d0f569a224f0767f
re PR c++/14550 (trouble with pointers in templates)

PR c++/14550
* parser.c (cp_parser_non_integral_constant_expression): Encode
more of the idiom that surrounded calls to this function within
the function itself
(cp_parser_primary_expression): Adjust accordingly.
(cp_parser_postfix_expression): Likewise.
(cp_parser_unary_expression): Likewise.
(cp_parser_cast_expression): Likewise.
(cp_parser_assignment_expression): Likewise.
(cp_parser_expression): Likewise.
(cp_parser_new_expression): Note that new-expressions are not
allowed in integral constant expressions.
(cp_parser_delete_expression): Likewise.

PR c++/14550
* g++.dg/parse/template14.C: New test.

From-SVN: r79498
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/template14.C [new file with mode: 0644]