]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/8153 (ICE with static const member in class)
authorMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 10 Dec 2002 07:16:06 +0000 (07:16 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 10 Dec 2002 07:16:06 +0000 (07:16 +0000)
commit04a96e5e5c303d93fdb9ffba6b96e723c4b4fe53
tree3e78afc23116d503fc7350f5e48facf2bdf145d6
parent166a11e7166d972d5f05cfd1d670c9b674022a02
re PR c++/8153 (ICE with static const member in class)

PR c++/8153
PR c++/8036
* NEWS: Document removal of in-class initialization extension for
static data members of non-arithmetic, non-enumeration type.
* decl.c (check_static_variable_definition): Do not allow that
extension.
* decl2.c (grokfield): Do not call digest_init when processing
templates.

PR c++/8153
PR c++/8036
* g++.dg/template/static1.C: New test.
* g++.dg/template/static2.C: New test.
* g++.old-deja/g++.ext/memconst.C: New test.

From-SVN: r59982
gcc/cp/NEWS
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/testsuite/g++.old-deja/g++.ext/memconst.C