]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR c++/70001
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Mar 2016 17:23:06 +0000 (17:23 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Mar 2016 17:23:06 +0000 (17:23 +0000)
commit98dfd3284ab35f626cd5207a6f2626e3a082efdf
tree8be605f86954df50bdc1048c627cdac0526251e5
parent279b9397bbbdc1d10d0b10198f9a47c006902dd8
PR c++/70001
* constexpr.c (cxx_eval_vec_init_1): For pre_init case, reuse
return value from cxx_eval_constant_expression from earlier
elements if it is valid constant initializer requiring no
relocations.

* g++.dg/cpp0x/constexpr-70001-1.C: New test.
* g++.dg/cpp0x/constexpr-70001-2.C: New test.
* g++.dg/cpp0x/constexpr-70001-3.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234117 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-70001-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/constexpr-70001-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/constexpr-70001-3.C [new file with mode: 0644]