[cfe-dev] Repeating declaration specifiers
"Mgr. Šimon Tóth"
toth at fi.muni.cz
Tue Jun 21 04:37:06 PDT 2011
>>> 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.
--
Mgr. Simon Toth
More information about the cfe-dev
mailing list