C++ PATCHes for c++/47453 (rejecting ({...}) for non-class types)

Jason Merrill jason@redhat.com
Fri Aug 5 19:21:00 GMT 2011


DR 1214 established that an initializer of the form ({something}) is 
only valid for an object of class type.  This patch implements that, 
though I've only made it a pedwarn as there is some uncertainty about 
whether this is actually what we want.  I've also split the patch into 
two to make it easier to revert if that turns out not to be the case; 
the first part is a cleanup which is correct either way.

Tested x86_64-pc-linux-gnu, applying to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 47453-1.patch
Type: text/x-patch
Size: 659 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110805/9a818b0d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 47453-2.patch
Type: text/x-patch
Size: 2510 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110805/9a818b0d/attachment-0001.bin>


More information about the Gcc-patches mailing list