re PR c++/14179 (out of memory while parsing array with many initializers)
authorRichard Biener <rguenther@suse.de>
Thu, 2 Feb 2017 08:55:44 +0000 (08:55 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 2 Feb 2017 08:55:44 +0000 (08:55 +0000)
commit27de0fab0f2aed57cd81d9bfefa913b2665b5b88
treef286389cb4d5499e9c0f5c378b920d0b8af7730e
parentd8d58893e4b12de87af384ec2bc45342e0238ce8
re PR c++/14179 (out of memory while parsing array with many initializers)

2017-02-02  Richard Biener  <rguenther@suse.de>

PR cp/14179
* cp-gimplify.c (cp_fold): When folding a CONSTRUCTOR copy
it lazily on the first changed element only and copy it
fully upfront, only storing changed elements.

From-SVN: r245118
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c