http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39681
--- Comment #9 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-05-17 18:54:45 UTC --- Author: paolo Date: Thu May 17 18:54:37 2012 New Revision: 187634 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187634 Log: /cp 2012-05-17 Paolo Carlini <paolo.carl...@oracle.com> PR c++/39681 * parser.c (cp_parser_new_type_id): Early return error_mark_node if the cp_parser_type_specifier_seq call has type_specifier_seq.type error_mark_node; tidy. (cp_parser_new_expression): Always initialize nelts to NULL_TREE to avoid uninitialized warnings. (cp_parser_init_declarator, cp_parser_late_parse_one_default_arg): Call cp_parser_skip_to_end_of_statement if cp_parser_initializer returns error_mark_node. /testsuite 2012-05-17 Paolo Carlini <paolo.carl...@oracle.com> PR c++/39681 * g++.dg/parse/error48.C: New. * g++.dg/cpp0x/error8.C: Likewise. * g++.dg/ext/utf-cxx98.C: Adjust dg-error directive. * g++.dg/ext/utf-dflt2.C: Likewise. * g++.dg/ext/utf-gnuxx98.C: Likewise. * g++.dg/ext/utf-dflt.C: Likewise. * c-c++-common/raw-string-3.c: Likewise. * c-c++-common/raw-string-4.c: Likewise. Added: trunk/gcc/testsuite/g++.dg/cpp0x/error8.C trunk/gcc/testsuite/g++.dg/parse/error49.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/parser.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/c-c++-common/raw-string-3.c trunk/gcc/testsuite/c-c++-common/raw-string-4.c trunk/gcc/testsuite/g++.dg/ext/utf-cxx98.C trunk/gcc/testsuite/g++.dg/ext/utf-dflt.C trunk/gcc/testsuite/g++.dg/ext/utf-dflt2.C trunk/gcc/testsuite/g++.dg/ext/utf-gnuxx98.C