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++?


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


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