This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ PATCH] Emit array initialization from ctor as loop if possible (PR c++/59659)


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).

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]