This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/12446] [3.3/3.4 regression] ICE in emit_move_insn on complicated array reference


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]