This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/12446] [3.3/3.4 regression] ICE in emit_move_insn on complicated array reference
- From: "kst at cts dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Sep 2003 17:43:55 -0000
- Subject: [Bug c/12446] [3.3/3.4 regression] ICE in emit_move_insn on complicated array reference
- References: <20030929202105.12446.kst@cts.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12446
------- Additional Comments From kst at cts dot com 2003-09-30 17:43 -------
Further discussion on comp.std.c turned up C99 6.5.2.2p5, which says in part:
If an attempt is made to modify the result of a function call or to
access it after the next sequence point, the behavior is undefined.
So the value of ptr cannot be used after its initialization without
invoking undefined behavior. I suggest that this should result in
a warning.