[cfe-dev] Repeating declaration specifiers
Hans Wennborg
hans at chromium.org
Tue Jun 21 04:42:53 PDT 2011
On Tue, Jun 21, 2011 at 12:37 PM, "Mgr. Šimon Tóth" <toth at fi.muni.cz> wrote:
>>>> Any language lawyers who can help?
>>>
>>> Forbidden in C++, allowed in C.
>>
>> Turns out Clang does catch this, but only with the -pedantic flag.
>>
>> Maybe it should be an error by default?
>
> I would say that -pedantic is pretty reasonable, since the code can be
> compiled without any issues. Maybe it could be a warning by default.
>
> I have no idea how widely does this appear in real code bases.
Can't be too common if GCC gives an error for it.
>
> --
> Mgr. Simon Toth
>
More information about the cfe-dev
mailing list