This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r152924 - in /trunk/gcc: cp/ChangeLog cp/parser...


Author: jason
Date: Sat Oct 17 06:11:08 2009
New Revision: 152924

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=152924
Log:
	PR c++/38798
	* parser.c (CP_PARSER_FLAGS_NO_TYPE_DEFINITIONS): New.
	(cp_parser_type_specifier): Don't try to parse a class-specifier
	or enum-specifier in that case.
	(cp_parser_trailing_type_id): New.
	(cp_parser_late_return_type_opt): Call it.
	(cp_parser_type_id_1): Add is_trailing_return parm.
	(cp_parser_type_specifier_seq): Likewise.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/trailing1.C
      - copied, changed from r152923, trunk/gcc/testsuite/g++.dg/cpp0x/auto6.C
    trunk/gcc/testsuite/g++.dg/cpp0x/trailing2.C
      - copied, changed from r152923, trunk/gcc/testsuite/g++.dg/cpp0x/auto8.C
    trunk/gcc/testsuite/g++.dg/cpp0x/trailing3.C
      - copied, changed from r152923, trunk/gcc/testsuite/g++.dg/cpp0x/auto12.C
    trunk/gcc/testsuite/g++.dg/cpp0x/trailing4.C
      - copied, changed from r152923, trunk/gcc/testsuite/g++.dg/cpp0x/auto13.C
    trunk/gcc/testsuite/g++.dg/cpp0x/trailing5.C
Removed:
    trunk/gcc/testsuite/g++.dg/cpp0x/auto12.C
    trunk/gcc/testsuite/g++.dg/cpp0x/auto13.C
    trunk/gcc/testsuite/g++.dg/cpp0x/auto6.C
    trunk/gcc/testsuite/g++.dg/cpp0x/auto8.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]