This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Anonymous types and [basic.link] for nonlocal variables
- From: Joe Buck <Joe dot Buck at synopsys dot COM>
- To: Mike Stump <mrs at apple dot com>
- Cc: Zack Weinberg <zack at codesourcery dot com>,Matt Austern <austern at apple dot com>, Geoff Keating <geoffk at apple dot com>,gcc mailing list <gcc at gcc dot gnu dot org>
- Date: Tue, 16 Mar 2004 15:20:15 -0800
- Subject: Re: Anonymous types and [basic.link] for nonlocal variables
- References: <87llm1a4po.fsf@egil.codesourcery.com> <93834DD8-7784-11D8-86A0-003065A77310@apple.com>
On Tue, Mar 16, 2004 at 12:00:30PM -0800, Mike Stump wrote:
> On Monday, March 15, 2004, at 06:46 PM, Zack Weinberg wrote:
> > Mike Stump <mrs@apple.com> writes:
> >
> >> Having said that, this is what pedwarn and/or permissive are for. The
> >> original patch had pedwarns in it, so I'm wondering how exactly things
> >> broke.
> >
> > The C++ front end has -pedantic-errors on by default. I think this is
> > wrong, but there are certain people who vocally insist otherwise.
>
> :-) Oh, yeah, that change... Well, that means we want to break things
> like QT more aggressively, doesn't it. Or, we could introduce the
> no_really_pedwarn () function. :-)
I didn't appreciate when I sent the original message that we were talking
about the dreaded cast-as-lvalue extension, which really messes up C++
because it changes the type of cast expressions, which breaks overloading.
If that's the issue, feel free to break QT if they rely on it.