------- Comment #23 from pinskia at gcc dot gnu dot org 2010-01-30 22:51 ------- GCC and aliasing is one area which talked about a lot. The problem is what the standard allows to do and what people think the compiler should do (not based on anything except what they are taught) are two different things. I don't remember any time during my schooling where my teacher even mentioned aliasing rules; though I knew they existed. So maybe my point is that aliasing is not taught well in any C/C++ classes and we should look into ways of fixing that issue rather than saying GCC should change. Yes warnings can help in teaching but not always.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42907