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

John David Anglin dave@hiauly1.hia.nrc.ca
Wed Aug 13 21:57:00 GMT 2003


> So there's agreement that g++ -pedantic should only be emitting a warning
> and not an error?

That's my reading of the documentation.  To get an error, you would
need to use -pedantic-errors or add -Werror.  I also believe the warning
should be an error if -ansi or -std=c++98 is used because the code
uses a feature that's not in the ISO standard.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)



More information about the Gcc mailing list