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: 27 Nov 2007 09:10:39 -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 #16 from rguenther at suse dot de 2007-11-27 09:10 -------
Subject: Re: Empty macro definitions not considered
equal
On Mon, 26 Nov 2007, manu at gcc dot gnu dot org wrote:
> ------- Comment #15 from manu at gcc dot gnu dot org 2007-11-26 17:47 -------
> (In reply to comment #14)
> >
> > I guess you are not explaining it wrong, but the situation is
> > extremely confusing:
> >
>
> Oh, I fully agree on that. But it is exactly the same situation that was there
> pre-4.3 for the C++ front-end. It is just that now CPP and C++ front-end
> defaults are consistent.
Yes.
> So for this bug, I am proposing that we only give the pointless diagnostic if
> the flag "pedantic" is set to 1 (either by using -pedantic or
> -pedantic-errors).
I like this idea (and as far as I understand this is what the patch you
pasted does).
Thanks,
Richard.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33907