This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Why does -pedantic make long long an error in C++?
On Wed, 2003-08-13 at 16:12, Joe Buck wrote:
> On Wed, Aug 13, 2003 at 06:29:52PM -0400, Andrew Pinski wrote:
> > I found an email from you that says the opposite (back in 1993 when
> > 2.95 was not even being thought of):
> > <http://www.geocrawler.com/archives/3/364/1993/4/0/2055267/>
>
> Ah, but I was young and stupid then. :-)
I think Jason was the architect of most of this code, but I could be
wrong.
Before my patch, -pedantic issued *warnings* where the compiler would
issue *errors* without -pedantic. In other words, -pedantic made the
compiler *less strict*.
The C++ front end has for some time treated "pedwarn" as equivalent to
"error" -- unless you say "-fpermissive". The C front end doesn't have
this "-fpermissive" thing, and "pedwarn" is just a warning, unless you
say "-pedantic-errors".
In other words, the C++ front end is in "-pedantic-errors" mode by
default.
This level of complexity seems far more than necessary to me, but that
is how it is.
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com