Why does -pedantic make long long an error in C++?
Andrew Pinski
pinskia@physics.uc.edu
Wed Aug 13 23:13:00 GMT 2003
I found an email from you that says the opposite (back in 1993 when
2.95 was not even being thought of):
<http://www.geocrawler.com/archives/3/364/1993/4/0/2055267/>
Thanks,
Andrew Pinski
On Wednesday, Aug 13, 2003, at 18:26 US/Eastern, Joe Buck wrote:
> 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