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++/51461] [c++0x] [4.7 Regression] ICE with invalid initialization of static data member


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

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-12-16 22:34:53 UTC ---
Author: jason
Date: Fri Dec 16 22:34:49 2011
New Revision: 182415

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182415
Log:
    PR c++/51461
    * decl.c (check_static_variable_definition): Check COMPLETE_TYPE_P
    before literal_type_p.

Added:
    trunk/gcc/testsuite/g++.dg/init/static4.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.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]