--- Comment #1 from pinskia at gcc dot gnu dot org 2008-08-10 23:28 ---
>d *ptr = reinterpret_cast (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.
--
p
--
paolo dot carlini at oracle dot com changed:
What|Removed |Added
Severity|major |normal
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36971
--
shyam_77_2000 at yahoo dot com changed:
What|Removed |Added
CC||shyam_77_2000 at yahoo dot
|