------- Comment #10 from rguenth at gcc dot gnu dot org  2009-05-20 15:15 
-------
Note that I am going to fix the missing warning because of comment #2 only.
For 4.3 comment #2 does not apply, instead you get a warning with
-Wstrict-aliasing=1

g++-4.3 -Wall -O3 -S t.C -UWARN -fdump-tree-all -Wstrict-aliasing=1
t.C: In function ‘Term term(const Func&)’:
t.C:13: warning: dereferencing type-punned pointer might break strict-aliasing
rules
t.C: In function ‘const Func& func(const Term&)’:
t.C:23: warning: dereferencing type-punned pointer might break strict-aliasing
rules


-- 


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

Reply via email to