[Bug c++/36971] Portability issue from gcc 2.96 to gcc 4.1.1 for c++ casting

2008-08-10 Thread pinskia at gcc dot gnu dot org
--- 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

[Bug c++/36971] Portability issue from gcc 2.96 to gcc 4.1.1 for c++ casting

2008-08-01 Thread paolo dot carlini at oracle dot com
-- paolo dot carlini at oracle dot com changed: What|Removed |Added Severity|major |normal http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36971

[Bug c++/36971] Portability issue from gcc 2.96 to gcc 4.1.1 for c++ casting

2008-08-01 Thread shyam_77_2000 at yahoo dot com
-- shyam_77_2000 at yahoo dot com changed: What|Removed |Added CC||shyam_77_2000 at yahoo dot |