PR c++/27804
authorreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Jun 2006 00:24:41 +0000 (00:24 +0000)
committerreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Jun 2006 00:24:41 +0000 (00:24 +0000)
commitec63b02e28b96463d1361aa8d0d9b21899ccbf50
tree9e5e112a3a5fef1467d387ee288b85a3f3ec4c21
parent9ddd059a12e277560cdd73425af6ea097386b858
PR c++/27804
* init.c (constant_value_1): Return decl instead of error_mark_node
for invalid initializers.

PR c++/27804
* g++.dg/init/const4.C: New test.
* g++.dg/init/member1.C: Add error-marker.
* g++.dg/other/fold1.C: Adjust error-marker.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114377 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/const4.C [new file with mode: 0644]
gcc/testsuite/g++.dg/init/member1.C
gcc/testsuite/g++.dg/other/fold1.C