Why does -pedantic make long long an error in C++?

Andrew Pinski pinskia@physics.uc.edu
Wed Aug 13 22:31:00 GMT 2003


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.


On Wednesday, Aug 13, 2003, at 18:09 US/Eastern, Andrew Pinski wrote:

> On Wednesday, Aug 13, 2003, at 17:43 US/Eastern, Joe Buck wrote:
>
>> There's no argument on this issue: -pedantic is supposed to issue only
>> warnings.  It's a bug.
>
> What are taking about, gcc used to error out with -pedantic when 
> typename was missing.
> In fact there was a bug about that and was closed as invalid (a long 
> time ago).
>
>
> Thanks,
> Andrew Pinski
>
>
>



More information about the Gcc mailing list