[cfe-commits] r151377 - in /cfe/trunk: include/clang/Basic/DiagnosticParseKinds.td include/clang/Basic/DiagnosticSemaKinds.td lib/Parse/ParseDeclCXX.cpp lib/Sema/DeclSpec.cpp test/SemaCXX/cxx98-compat.cpp test/SemaCXX/decltype-98.cpp
eli.friedman at gmail.com
Fri Feb 24 16:57:02 CST 2012
On Fri, Feb 24, 2012 at 2:35 PM, Richard Smith <richard at metafoo.co.uk> wrote:
> On Fri, Feb 24, 2012 at 1:50 PM, Eli Friedman <eli.friedman at gmail.com>
>> On Fri, Feb 24, 2012 at 10:10 AM, Richard Smith
>> <richard-llvm at metafoo.co.uk> 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
Actually, I'm not really sure what the point of -Wgnu is...
More information about the cfe-commits