This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/33907] Empty macro definitions not considered equal
- From: "rguenther at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Nov 2007 22:29:33 -0000
- Subject: [Bug preprocessor/33907] Empty macro definitions not considered equal
- References: <bug-33907-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from rguenther at suse dot de 2007-11-25 22:29 -------
Subject: Re: Empty macro definitions not considered
equal
On Sun, 25 Nov 2007, manu at gcc dot gnu dot org wrote:
> ------- Comment #7 from manu at gcc dot gnu dot org 2007-11-25 22:23 -------
> (In reply to comment #6)
> >
> > But yes, there's probably nothing else than to close this bug.
> >
>
> Well you could make the error depend on the pedantic flag. This is a recurrent
> confusion: C++ does not enable pedantic-errors by default. It makes pedwarns as
> errors. -pedantic-errors is pedantic flag + pedwarns as errors.
But C++ has -pedantic as default as well ;)
> If you can provide me with a better text for the comment (something about the
> part of the standard that requires us to give a diagnostic), I can update the
> patch, bootstrap it and regression test it.
Tom can probably do this. But I belive the patch will not work,
as CPP_PEDANTIC is set to true by the C++ frontend now.
Richard.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33907