re PR c++/47956 ([C++0x] gcc accepts static data member declaration with initializer...
authorJason Merrill <jason@redhat.com>
Fri, 27 May 2011 04:01:46 +0000 (00:01 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 27 May 2011 04:01:46 +0000 (00:01 -0400)
commit7c999b5781074ab69ec3604b13017625197872a9
treea110f301d7082068a3ed15d57a08a467657c445a
parent8fd1dd1461e89d9d4b44e6f9615fbca288ec40f8
re PR c++/47956 ([C++0x] gcc accepts static data member declaration with initializer for non-const literal type if type-specifier is auto)

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.

From-SVN: r174317
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/auto7.C
gcc/testsuite/g++.dg/template/crash50.C
gcc/testsuite/g++.dg/template/static9.C
gcc/testsuite/g++.old-deja/g++.ext/memconst.C