C++ PATCHes for Core 1288 and c++/58812 (ICE with excess braces)

Jason Merrill jason@redhat.com
Tue Jan 28 04:03:00 GMT 2014


The first patch implements core DR 1288, which adjusts the 
list-initialization rules so that an initializer-list containing a 
single element of the same type as the target is treated as the 
initializer by itself.

The second patch expands the excess braces diagnostic to cover reference 
initialization as well as scalar, and thereby avoids an ICE when trying 
to convert them.

Tested x86_64-pc-linux-gnu.  First patch applied to trunk, second to 
both trunk and 4.8.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dr1288.patch
Type: text/x-patch
Size: 2829 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140128/0716d8f1/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 58812.patch
Type: text/x-patch
Size: 2663 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140128/0716d8f1/attachment-0001.bin>


More information about the Gcc-patches mailing list