------- Comment #9 from fejj at novell dot com 2010-01-30 21:33 ------- gcc should do what I've asked it to do.
if I change the cast to: tail = (Node *) ((char *) &list); it works, even with -fstrict-aliasing. In other words, if I trick gcc into not being "smart", it works. gcc shouldn't try to outsmart the programmer - that is just wrong. -- fejj at novell dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|INVALID | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42907