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


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


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