<div class="gmail_quote">On Fri, Feb 24, 2012 at 1:50 PM, Eli Friedman <span dir="ltr"><<a href="mailto:eli.friedman@gmail.com">eli.friedman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Fri, Feb 24, 2012 at 10:10 AM, Richard Smith<br>
<<a href="mailto:richard-llvm@metafoo.co.uk">richard-llvm@metafoo.co.uk</a>> wrote:<br>
> Author: rsmith<br>
> Date: Fri Feb 24 12:10:23 2012<br>
> New Revision: 151377<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=151377&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=151377&view=rev</a><br>
> Log:<br>
> __decltype is a GNU extension, not a C++11 extension.<br>
<br>
</div>We don't normally warn about the use of __-prefixed keywords, since<br>
any use of such keywords is obviously an extension. Is there any<br>
particular reason to warn here?<br></blockquote></div><br><div>There's no reason which is specific to this keyword. I'm not sure I understand the motivation behind this distinction: if -Wgnu is intended to warn on constructs which are not portable to non-GNU-compatible compilers, then it should clearly warn on this. Otherwise, what is its intended purpose?</div>
<div><br></div><div>Nonetheless, if we want to warn on GNU __-prefixed keywords, we should add a warning somewhere more global to catch all of them, rather than just warning on this one keyword; I've reverted this part of the change in r151401.</div>
<div><br></div><div>Thanks!</div><div>Richard</div>