diff options
author | Mark Mitchell <mark@codesourcery.com> | 2004-03-15 16:16:18 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2004-03-15 16:16:18 +0000 |
commit | 625cbf9318915e406776ab23a21fbb7093889c7a (patch) | |
tree | 6ca3ec63bda60cceb911971973b8af475954de44 /gcc/tree.c | |
parent | 983e64842fe8236e78dc11f6d0f569a224f0767f (diff) | |
download | gcc-625cbf9318915e406776ab23a21fbb7093889c7a.zip gcc-625cbf9318915e406776ab23a21fbb7093889c7a.tar.gz gcc-625cbf9318915e406776ab23a21fbb7093889c7a.tar.bz2 |
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
Diffstat (limited to 'gcc/tree.c')
0 files changed, 0 insertions, 0 deletions