Why does -pedantic make long long an error in C++?

Joe Buck jbuck@synopsys.com
Wed Aug 13 22:34:00 GMT 2003


On Wed, Aug 13, 2003 at 06:09:49PM -0400, Andrew Pinski wrote:
> On Wednesday, Aug 13, 2003, at 17:43 US/Eastern, Joe Buck wrote:
> 
> > There's no argument on this issue: -pedantic is supposed to issue only
> > warnings.  It's a bug.
> 
> What are taking about, gcc used to error out with -pedantic when 
> typename was missing.
> In fact there was a bug about that and was closed as invalid (a long 
> time ago).

What I'm saying is that if there is any case where -pedantic detects
a condition and causes an error, it is a gcc bug.  However, if the
compiler also has an error without -pedantic, it's not a bug.  If
someone did as you say (claimed it was not a bug that -pedantic caused
an additional error), they did wrong.




More information about the Gcc mailing list