[Bug c++/13005] [3.3/3.4 Regresssion] [aliasing] Pointer wrongly adjusted for derived class containing virtual function
nathan at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Dec 29 20:50:00 GMT 2003
------- Additional Comments From nathan at gcc dot gnu dot org 2003-12-29 19:15 -------
AFAICT the report so far is that Base is not at offset zero within
Derived. That is not a bug. The original test case contains this
Base() : before((Derived*)this), after((Derived*)this) {}
which is unspecified. At that point Derived is incomplete.
So it is unspecified as to whether the old-style cast is treated as
a static_cast or a reinterpret_cast. See [5.4]/6
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13005
More information about the Gcc-bugs
mailing list