This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Ping: PATCH to generate error for address of cast


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]