This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r182387 - in /trunk/gcc: cp/ChangeLog cp/decl.c...
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 15 Dec 2011 20:45:55 -0000
- Subject: r182387 - in /trunk/gcc: cp/ChangeLog cp/decl.c...
Author: jakub
Date: Thu Dec 15 20:45:53 2011
New Revision: 182387
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182387
Log:
PR c++/51463
* decl.c (grokdeclarator): Set DECL_INITIAL of decl
to error_mark_node to disallow NSDMI if declspecs->storage_class
is sc_static.
* parser.c (cp_parser_late_parse_one_default_arg): Return early
if default_arg is error_mark_node.
* g++.dg/cpp0x/pr51463.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/pr51463.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog