This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Ping: PATCH to generate error for address of cast
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: Matt Austern <austern at apple dot com>, Fergus Henderson <fjh at cs dot mu dot OZ dot AU>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 22 Aug 2002 18:20:05 +0100
- Subject: Re: Ping: PATCH to generate error for address of cast
- Organization: Codesourcery LLC
- References: <823EE556-B558-11D6-8654-000393B2ABA2@apple.com> <wvllm6zqaq0.fsf@prospero.cambridge.redhat.com>
Jason Merrill wrote:
>
> On Wed, 21 Aug 2002 15:51:20 -0700, Matt Austern <austern@apple.com> wrote:
>
> > Separately, I think. I'll have to learn how to distinguish
> > between old-style and new-style casts in the IR.
>
> I don't think there's currently any distinction.
No there isn't. static_cast goes through some extra initial checks
to filter out the staticky cast differences, verifies old cast
will DTRT and then calls the old cast code. Put the extra test
in build_static_cast or thereabouts.
nathan
--
Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org