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

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


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



More information about the Gcc mailing list