re PR c++/70001 (Infinity compilation time)
authorJakub Jelinek <jakub@redhat.com>
Wed, 23 Mar 2016 18:55:38 +0000 (19:55 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 23 Mar 2016 18:55:38 +0000 (19:55 +0100)
commit928af3bfe2bd34a803c3a371436463fd46b31e5d
treeab45560fcaf026a391bb8e5afaa07f430e349432
parent61637db3f2f55a1b97e6f466be012a131bede75d
re PR c++/70001 (Infinity compilation time)

PR c++/70001
* constexpr.c (cxx_eval_vec_init_1): Reuse CONSTRUCTOR initializers
for 1..max even for multi-dimensional arrays.  Call unshare_expr
on it.

* g++.dg/cpp0x/constexpr-70001-4.C: New test.
* g++.dg/cpp1y/pr70001.C: New test.

From-SVN: r234439
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-70001-4.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/pr70001.C [new file with mode: 0644]