This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/14750] type-punned pointer causes bad code
- From: "jsm at polyomino dot org dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Mar 2004 13:02:04 -0000
- Subject: [Bug c/14750] type-punned pointer causes bad code
- References: <20040327035806.14750.lindsayd@cisco.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From jsm at polyomino dot org dot uk 2004-03-28 13:02 -------
Subject: Re: type-punned pointer causes bad code
On Sun, 28 Mar 2004, giovannibajo at libero dot it wrote:
> JSM, what about rewording the message to make it clearer? Something
> like: "derefering type-punned pointer will break strict-aliasing rules, and
> might generate invalid code" or something like that. An explicit reference to
> the wrong-code problem might help.
We could do with a proper index to the diagnostics. But for now adding an
inform () with a suitable message following the warning would make sense.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14750