long long, C++ testsuite and -ansi -pedantic-errors

Gabriel Dos Reis gdr@codesourcery.com
Tue Jun 13 01:01:00 GMT 2000


Mark Mitchell <mark@codesourcery.com> writes:

[...]

| libstdc++ V3 needs to have a mode (and it probably does!) where `long
| long' isn't use for compilers that don't accept it -- since they don't
| need to at this point.  And g++ should probably accept it with a
| warning, rather than issuing an error.

Mark,

G++ does accept long long with just a warning (a pedwarn); and that
is fine. 

The point here is that -pedantic-errors is documented as:
-pedantic-errors
Like -pedantic, except that errors are produced rather than warnings.


I'm not advocating for not implementing long long in g++. I'm saying
we should be consistent with the documentation.

-- Gaby
CodeSourcery, LLC                             http://www.codesourcery.com




More information about the Gcc mailing list