re PR c++/28991 (Static constructor emitted instead of initialized variable)
authorMark Mitchell <mark@codesourcery.com>
Mon, 11 Sep 2006 00:40:15 +0000 (00:40 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 11 Sep 2006 00:40:15 +0000 (00:40 +0000)
commitbc70af526c6b2243c68242d0aa6a48da9da4003d
tree638e093b62285063b24863274ca086abe9301c4b
parentd35763beeab40ff256e819535bc6cc8eda90e6ce
re PR c++/28991 (Static constructor emitted instead of initialized variable)

PR c++/28991
* cp-objcp-common.c (cxx_staticp): New function.
* cp-objcp-common.h (LANG_HOOOKS_STATICP): Use it.
* cp-tree.h (cxx_staticp): New function.
PR c++/289991
* g++.dg/init/static3.C: New test.

From-SVN: r116838
gcc/cp/ChangeLog
gcc/cp/cp-objcp-common.c
gcc/cp/cp-objcp-common.h
gcc/cp/cp-tree.h
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/static3.C [new file with mode: 0644]