[Bug c++/47956] [C++0x] gcc accepts static data member declaration with initializer for non-const literal type if type-specifier is auto
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri May 27 04:05:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47956
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-27 04:01:51 UTC ---
Author: jason
Date: Fri May 27 04:01:46 2011
New Revision: 174317
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174317
Log:
PR c++/47956
* decl.c (check_static_variable_definition): Now static.
(cp_finish_decl): Call it here.
(grokdeclarator): Not here.
* pt.c (instantiate_class_template_1): Or here.
* cp-tree.h: Don't declare it.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/decl.c
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/cpp0x/auto7.C
trunk/gcc/testsuite/g++.dg/template/crash50.C
trunk/gcc/testsuite/g++.dg/template/static9.C
trunk/gcc/testsuite/g++.old-deja/g++.ext/memconst.C
More information about the Gcc-bugs
mailing list