[cfe-dev] Unexpected warning in -std=gnu89 -pedantic mode.
Douglas Gregor
dgregor at apple.com
Wed Aug 26 16:27:42 PDT 2009
On Aug 26, 2009, at 4:02 PM, Eli Friedman wrote:
> On Wed, Aug 26, 2009 at 3:57 PM, Douglas Gregor<dgregor at apple.com>
> wrote:
>> A GNU extension is something that GNU supports and isn't part of
>> the base
>> language. Same deal with Microsoft extensions, and it's natural
>> that some
>> extensions will be available in both modes.
>>
>
> So a GNU extension any diagnostic currently classified as Extension
> right now, plus the? Okay, but that makes the whole thing seem
> orthogonal to this discussion...
>
We have a tiny number of Extensions that aren't GNU extensions, e.g.,
ext_ellipsis_exception_spec (a Microsoft extension) and
ext_explicit_instantiation_after_specialization (a C++0x extension
that's benign in C++98 mode).
But, since the vast majority of Extensions and ExtWarns are for GNU,
it's probably easier just to deal with these oddballs in the code.
- Doug
More information about the cfe-dev
mailing list