[cfe-commits] r78332 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaDeclCXX.cpp test/CXX/class/class.friend/p1.cpp

Douglas Gregor dgregor at apple.com
Thu Aug 6 14:22:57 PDT 2009


On Aug 6, 2009, at 2:20 PM, John McCall wrote:

> Eli Friedman wrote:
>> We generally prefer to make a warning "Extension" rather than an
>> "ExtWarn" outside of GNU mode.
>>
>
> You're right; I was just thinking that this seemed unnecessarily  
> complex.
>
> Ideally I would like a somewhat finer-grained way to report this —  
> it's
> not just some random gcc extension, it's a universally-blessed  
> extension
> that we should only treat as an error in a strict compliance mode. In
> the absence of a good way to say that, treating it as an extension  
> is okay.

Hmmm... we *could* easily add a new warning group -Wstrict that covers  
strict-conformance diagnostics like this one. Then -Werror=strict  
would be a "strict compliance mode" of sorts.

	- Doug



More information about the cfe-commits mailing list