[C++ PATCH] Emit array initialization from ctor as loop if possible (PR c++/59659)
Tue Jan 21 15:16:00 GMT 2014
On Tue, Jan 21, 2014 at 10:11:45AM -0500, Jason Merrill wrote:
> I'm inclined to handle this situation by using a RANGE_EXPR in
> process_init_constructor_array, and then handling that appropriately
> in build_vec_init, so that we don't have to build up the huge
> CONSTRUCTOR. Would you like to do that, or shall I take it over?
If you could take it over, I'd appreciate it.
Note that the RANGE_EXPR related PR59886 regression is probably
higher priority though (and no idea how to handle the cleanup there
nicely if some ctor throws during second or following iteration).
More information about the Gcc-patches