[Bug c/20689] strict aliasing with temporary variable never gives warnings
falk at debian dot org
gcc-bugzilla@gcc.gnu.org
Wed Mar 30 12:24:00 GMT 2005
------- Additional Comments From falk at debian dot org 2005-03-30 12:23 -------
(In reply to comment #2)
> I mean that since in case where you are doing "void *p=(void *)&i" then
> according to strict-aliasing rules we get " warning: dereferencing type-punned
> pointer will break strict-aliasing rules"
No, you don't. Please provide a *complete* test case, with the command line
you use and the output you get.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20689
More information about the Gcc-bugs
mailing list