On Fri, Feb 24, 2012 at 1:50 PM, Eli Friedman <[email protected]>wrote:
> On Fri, Feb 24, 2012 at 10:10 AM, Richard Smith > <[email protected]> wrote: > > Author: rsmith > > Date: Fri Feb 24 12:10:23 2012 > > New Revision: 151377 > > > > URL: http://llvm.org/viewvc/llvm-project?rev=151377&view=rev > > Log: > > __decltype is a GNU extension, not a C++11 extension. > > We don't normally warn about the use of __-prefixed keywords, since > any use of such keywords is obviously an extension. Is there any > particular reason to warn here? > 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? 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. Thanks! Richard
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
