This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Why does -pedantic make long long an error in C++?
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: dave at hiauly1 dot hia dot nrc dot ca (John David Anglin)
- Cc: gcc at gcc dot gnu dot org, willy at debian dot org
- Date: Wed, 13 Aug 2003 16:59:05 -0400 (EDT)
- Subject: Re: Why does -pedantic make long long an error in C++?
There was already a PR for this, PR 11720 <http://gcc.gnu.org/PR11720>
I closed it because it looked like mozilla was testing the wrong thing when it was configuring.
It looked like there was some wrong-code bug that mozilla was running into with long long and one of the tests mozilla foundd it was only when -pedantic errored out about long long's.
The test mozilla should have been running was testing for the wrong-code instead of the pedantic erroring for long long.
Thanks,
Andrew Pinski
>
> Don't know but you can turn the error to a warning by adding
> -Wlong-long, and make it go away completely with -Wno-long-long!
> Addition of -ansi doesn't seem to change the behavior of g++
> wrt to this error/warning.
>
> Probably, a PR is needed.
>
> Dave
> --
> J. David Anglin dave.anglin@nrc-cnrc.gc.ca
> National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
>
>