[Bug c/17665] wrong code with -O2

davids at webmaster dot com gcc-bugzilla@gcc.gnu.org
Sat Sep 25 17:56:00 GMT 2004


------- Additional Comments From davids at webmaster dot com  2004-09-25 17:56 -------
Is this code legal without -fno-strict-aliasing?

void *foo=malloc(sizeof(void *));
*(void **)foo=malloc(16);

DS


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17665



More information about the Gcc-bugs mailing list