r179156 - in /trunk/gcc: cp/ChangeLog cp/decl.c...
jason@gcc.gnu.org
jason@gcc.gnu.org
Sun Sep 25 02:26:00 GMT 2011
Author: jason
Date: Sun Sep 25 02:26:01 2011
New Revision: 179156
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179156
Log:
Handle deferred parsing of NSDMIs.
* parser.h (cp_unparsed_functions_entry): Add nsdmis field.
* parser.c (unparsed_nsdmis, cp_parser_save_nsdmi): New.
(cp_parser_late_parse_one_default_arg): Split out from
cp_parser_late_parsing_default_args.
(cp_parser_late_parsing_nsdmi): New.
(push_unparsed_function_queues): Set it.
(cp_parser_parameter_declaration): Save the '=' token.
(cp_parser_template_parameter): Likewise.
(cp_parser_default_argument): Call cp_parser_initializer
rather than cp_parser_initializer_clause.
(cp_parser_class_specifier_1): Parse unparsed_nsdmis.
(cp_parser_member_declaration): Handle nsdmis.
* decl2.c (grokfield): Handle DEFAULT_ARG for a function.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/nsdmi-defer1.C
trunk/gcc/testsuite/g++.dg/cpp0x/nsdmi-defer2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/cp/decl2.c
trunk/gcc/cp/parser.c
trunk/gcc/cp/parser.h
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/other/pr39060.C
trunk/gcc/testsuite/g++.dg/parse/crash56.C
More information about the Gcc-cvs
mailing list