This is the mail archive of the gcc-bugs@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]

[Bug c++/51463] [c++0x] [4.7 Regression] ICE declaring a member function virtual and static


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51463

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-12-15 20:46:01 UTC ---
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


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