PR c++/23171
commit0f3d70f0f21c1a67189e5fc7cedea638c36f1f62
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 24 Dec 2005 08:51:05 +0000 (24 08:51 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 24 Dec 2005 08:51:05 +0000 (24 08:51 +0000)
tree4b42632a639078d9ef8f1062fdfbd875b99f3576
parent4ac5a450daf9f4e22dd90f2180cb15c2a4a7dc1f
PR c++/23171
* varasm.c (initializer_constant_valid_p): An ADDR_EXPR of a
CONSTRUCTOR is invalid.

PR c++/23171
* g++.dg/opt/init1.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109035 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/init1.C [new file with mode: 0644]
gcc/varasm.c