C++ PATCH for c++/59646 (ICE with volatile initializer_list)

Jason Merrill jason@redhat.com
Fri Jan 31 15:39:00 GMT 2014


We were failing to set TARGET_EXPR_LIST_INIT_P on a TARGET_EXPR created 
from aggregate initialization, which is needed to avoid calling the copy 
constructor when using that TARGET_EXPR to initialize the element of the 
underlying array of the initializer_list.

We also should avoid building a CONSTRUCTOR with an error_mark_node 
inside it.

Tested x86_64-pc-linux-gnu, applying to trunk and 4.8.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 59646.patch
Type: text/x-patch
Size: 2261 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140131/0ea1afa2/attachment.bin>


More information about the Gcc-patches mailing list