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

Eli Friedman eli.friedman at gmail.com
Thu Aug 6 21:58:48 PDT 2009


On Thu, Aug 6, 2009 at 2:22 PM, Douglas Gregor<dgregor at apple.com> wrote:
>
> 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.

How would this be different from "-pedantic"?

-Eli




More information about the cfe-commits mailing list