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: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: willy at debian dot org (Matthew Wilcox)
- Cc: pinskia at physics dot uc dot edu, gcc at gcc dot gnu dot org, willy at debian dot org
- Date: Wed, 13 Aug 2003 17:19:18 -0400 (EDT)
- Subject: 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)