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: 26 Nov 2007 09:56:44 -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 #11 from rguenther at suse dot de 2007-11-26 09:56 -------
Subject: Re: Empty macro definitions not considered
equal
On Sun, 25 Nov 2007, manu at gcc dot gnu dot org wrote:
> ------- Comment #10 from manu at gcc dot gnu dot org 2007-11-25 22:59 -------
> (In reply to comment #8)
> >
> > 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.
>
> BTW, the patch works for the revision I diffed against. The testcases included
> in the patch pass.
I see. But sth changed in the cpp defaults for C++ in 4.3 as things
that were previously warnings (with 4.2) are now errors (with 4.3), such
as this one or the macro re-definition.
Richard.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33907