PR c++/29886
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 27 Nov 2006 03:38:57 +0000 (03:38 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 27 Nov 2006 03:38:57 +0000 (03:38 +0000)
commit0aeb1cc537685aa6590c6057edf1744c0456fccd
tree8286b3f99f0ffc3955165946f34a9bbf324c1b16
parent69c937e1fd6ed8e5b8d05727ddbcea304ab31272
PR c++/29886
* parser.c (cp_parser): Add in_function_body.
(cp_parser_new): Initialize it.
(cp_parser_primary_expression): Use parser->in_function_body
instead of at_function_scope_p.
(cp_parser_asm_definition): Likewise.
(cp_parser_direct_declarator): Likewise.
(cp_parser_class_specifier): Clear parser->in_function_body.
(cp_parser_constructor_declarator_p): Use parser->in_function_body
instead of at_function_scope_p.
(cp_parser_function_body_after_declarator): Set
parser->in_function_body.
PR c++/29886
* g++.dg/expr/cast8.C: New test.

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