OSDN Git Service

PR c++/14550
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 15 Mar 2004 16:16:18 +0000 (16:16 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 15 Mar 2004 16:16:18 +0000 (16:16 +0000)
commit3938e0c204d514fc302514f019495a55d97e3ccf
tree6ca3ec63bda60cceb911971973b8af475954de44
parent1e93bfb2f7ce53364a1362fa36ff3cb05f64f7f6
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79498 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/template14.C [new file with mode: 0644]