]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/70001 (Infinity compilation time)
authorPatrick Palka <ppalka@gcc.gnu.org>
Thu, 10 Mar 2016 17:23:06 +0000 (17:23 +0000)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 10 Mar 2016 17:23:06 +0000 (18:23 +0100)
commitb87a8d7de708533d909b808a46d9fe52b7a07e52
tree8be605f86954df50bdc1048c627cdac0526251e5
parent48090169ea765dd56274dbc7863be562d14037a2
re PR c++/70001 (Infinity compilation time)

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.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r234117
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]