------- Comment #1 from pinskia at gcc dot gnu dot org 2008-08-10 23:28 -------
>d *ptr = reinterpret_cast<d*> (c1);
You are violating C/C++ aliasing rules as *c1 here is a c and not a d. Even
though d inherits from c, this is undefined behavior still as it is not the
opposite way around.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36971