[Bug c/80130] Wrong diagnostic: dereferencing type-punned pointer
egallager at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jul 31 19:48:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80130
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |egallager at gcc dot gnu.org
--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
I only get 1 warning on (1) and only with -Wstrict-aliasing=1.
-Wstrict-aliasing=2 and -Wstrict-aliasing=3 are both silent.
(In reply to Richard Biener from comment #1)
> The warning implementation is incredibly stupid, don't use it. It doesn't
> have any context (so the two stmt variant is different from the single stmt
> one).
It'd still be nice if it could be improved though. Although, maybe it already
has been?
More information about the Gcc-bugs
mailing list