Why does -pedantic make long long an error in C++?
Joe Buck
jbuck@synopsys.com
Wed Aug 13 22:36:00 GMT 2003
On Wed, Aug 13, 2003 at 06:20:03PM -0400, Andrew Pinski wrote:
> In fact the C++ front-end is different from the C front end in respect
> to -pedantic.
> Here is the patch which changed the "long long" -pedantic into errors:
> <http://gcc.gnu.org/ml/gcc-patches/2003-07/msg01060.html>
> Looks like the warning about "long long" with -pedantic was always
> indented to be an error not a warning.
> Thanks,
> Andrew Pinski
>
> Adding Mark to CC since it was his patch which caused this, maybe he
> has something to say.
I think that this was a mistake; it violates the longstanding spec
about the meaning of -pedantic. Certainly I don't see a reason for the
C and C++ front ends to differ on the meaning of the same switch, or
to differ on the meaning for distinct errors.
More information about the Gcc
mailing list