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
Showing
- gcc/cp/ChangeLog 6 additions, 0 deletionsgcc/cp/ChangeLog
- gcc/cp/init.c 1 addition, 1 deletiongcc/cp/init.c
- gcc/testsuite/ChangeLog 7 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/g++.dg/init/const4.C 8 additions, 0 deletionsgcc/testsuite/g++.dg/init/const4.C
- gcc/testsuite/g++.dg/init/member1.C 1 addition, 1 deletiongcc/testsuite/g++.dg/init/member1.C
- gcc/testsuite/g++.dg/other/fold1.C 1 addition, 1 deletiongcc/testsuite/g++.dg/other/fold1.C
Loading
Please register or sign in to comment