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: pinskia at physics dot uc dot edu (Andrew Pinski)
- Cc: willy at debian dot org, pinskia at physics dot uc dot edu, gcc at gcc dot gnu dot org
- Date: Wed, 13 Aug 2003 17:25:43 -0400 (EDT)
- Subject: Re: Why does -pedantic make long long an error in C++?
> I interpute this as it can error for "all programs that use forbidden extensions", long long looks like to be one of these.
The default standard for g++ is gnu++98 which is the same as -std=c++98
plus GNU extensions. I presume that long long support is one of the
GNU extensions. If long long support is not part of gnu++98, then
-Wlong-long and -Wno-long-long should not be able to make it part of
it. Either way, there is a problem.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)