This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


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

Re: --enable-long-long by default?


>>>>> Martin v Loewis <martin@loewis.home.cs.tu-berlin.de> writes:

 > long long, as a built-in type, is available in g++ by default. It is
 > an extension that cannot be mistaken as a well-formed C++ program, so
 > -ansi has nothing to do with it. In g++, this type is not available
 > with -pedantic. I'd prefer if this strategy (provide extensions by
 > default) also applies to the libraries included in GCC.

Agreed.  The purpose of -ansi is to ensure that all conformant programs
compile properly; the purpose of -pedantic is to complain about
nonconformant programs.  -ansi should only turn off extensions that could
change the meaning of a well-formed program.

Jason

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