This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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)
> 
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]