Actions

icon Post
text/html Subscribe
text/html Unsubscribe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cxx-abi-dev] trivial __dynamic_cast fails?


  • To: David Baraff <deb@xxxxxxxxx>
  • Subject: Re: [cxx-abi-dev] trivial __dynamic_cast fails?
  • From: Mark Mitchell <mark@xxxxxxxxxxxxxxxx>
  • Date: Fri, 27 Feb 2004 09:36:55 -0800

David Baraff wrote:

I'm playing around with the __cxxabiv1::__dynamic_cast() function.  It
works as I would expect, with one exception.

The ABI document does not require that __dynamic_cast perform a derived-to-base cast. Those __dynamic_cast operations that can actually be performed statically by the compiler must be performed statically by the compiler -- the runtime library does not expect to be called in that situation.

--
Mark Mitchell
CodeSourcery, LLC
mark@xxxxxxxxxxxxxxxx