C++ PATCH for c++/48132 (ICE with constexpr and array)
Jason Merrill
jason@redhat.com
Wed Mar 16 20:00:00 GMT 2011
Jakub was right that we were failing to add indices to the array
CONSTRUCTOR along this code path. It seems appropriate to add them
earlier, in reshape_init, like we do for classes, so this patch fixes
the bug that way.
Tested x86_64-pc-linux-gnu, applying to trunk. Also OK for 4.6.0? The
risk is that something else not caught by the testsuite could be
confused by adding the indices slightly sooner, but that seems unlikely.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 48132.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110316/3eff0375/attachment.ksh>
More information about the Gcc-patches
mailing list