[Bug middle-end/38537] -fstrict-aliasing and -Wstrict-aliasing do not work

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Dec 15 23:57:00 GMT 2008



------- Comment #2 from pinskia at gcc dot gnu dot org  2008-12-15 23:55 -------
On the trunk we do get a warning:
t.c: In function ‘main’:
t.c:7: warning: dereferencing pointer ‘({anonymous})’ does break
strict-aliasing rules
t.c:7: note: initialized from here

Though it seems like the warning itself could be improved.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |middle-end


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



More information about the Gcc-bugs mailing list