This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: long long, C++ testsuite and -ansi -pedantic-errors
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