<p>gcc trunk already produced a warning, and libstdc++ trunk was already fixed.</p>
<div class="gmail_quote">On Feb 17, 2012 12:14 AM, "Jeffrey Yasskin" <<a href="mailto:jyasskin@googlers.com">jyasskin@googlers.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Tue, Feb 14, 2012 at 12:44 PM, Richard Smith <<a href="mailto:richard@metafoo.co.uk">richard@metafoo.co.uk</a>> wrote:<br>
> On Sat, Feb 11, 2012 at 3:51 PM, Sebastian Redl<br>
> <<a href="mailto:sebastian.redl@getdesigned.at">sebastian.redl@getdesigned.at</a>> wrote:<br>
>><br>
>> Author: cornedbee<br>
>> Date: Sat Feb 11 17:51:47 2012<br>
>> New Revision: 150318<br>
>><br>
>> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=150318&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=150318&view=rev</a><br>
>> Log:<br>
>> Represent C++ direct initializers as ParenListExprs before semantic<br>
>> analysis<br>
>> instead of having a special-purpose function.<br>
>><br>
>> - ActOnCXXDirectInitializer, which was mostly duplication of<br>
>> AddInitializerToDecl (leading e.g. to PR10620, which Eli fixed a few days<br>
>> ago), is dropped completely.<br>
>> - MultiInitializer, which was an ugly hack I added, is dropped again.<br>
>> - We now have the infrastructure in place to distinguish between<br>
>> int x = {1};<br>
>> int x({1});<br>
>> int x{1};<br>
><br>
><br>
> g++4.6 has a bug where it silently accepts "t({...})" as if it were a<br>
> brace-or-init-list initializer in a constructor's member initializer list.<br>
> By the law of nature that for every g++ "extension" there is an equal and<br>
> opposite libstdc++ bug, libstdc++ 4.6's <bitset> uses this syntax to<br>
> initialize its member array in C++11 mode. Is it feasible to downgrade the<br>
> error in this particular case to an ExtWarn?<br>
<br>
Please also file gcc bugs in cases like this. They're generally happy<br>
to try to fix gcc-trunk so more instances don't pop up in the future.<br>
</blockquote></div>