This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Changes in C++ FE regarding pedwarns to be errors are harmful
Sunday 13 January 2008 18:10:00 tarihinde Richard Guenther şunları yazmıştı:
> On Jan 13, 2008 5:10 PM, Ismail Dönmez <ismail@pardus.org.tr> wrote:
> > Sunday 13 January 2008 18:03:20 tarihinde Andreas Schwab şunları yazmıştı:
> > > Ismail Dönmez <ismail@pardus.org.tr> writes:
> > > > That was just an example, real life testcase shows that problem stems
> > > > from autoconf and its config.h. Projects end up defining things like
> > > > HAVE_STDLIB_H twice which is not harmful at all but now causes an
> > > > error if g++ is used.
> > >
> > > Redefinitions with the same replacement list are not an error.
> >
> > Ok but that still doesn't cover the general use of
> >
> > #define PACKAGE_NAME foobar
> >
> > etc.
>
> But that's just bugs that need to be fixed.
I think we already agreed that this is just too many packages to fix and that
this warning should only be an error with -pedantic. People already started
adding #undef hacks to workaround this, others are building
with -fpermissive.
So we should should just let Manu finish up his patch and get a review as C++
FE maintainers agreed as well.
Regards,
ismail
--
Never learn by your mistakes, if you do you may never dare to try again.