This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/24517] casting problem
- From: "falk at debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Oct 2005 12:40:45 -0000
- Subject: [Bug c/24517] casting problem
- References: <bug-24517-11584@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from falk at debian dot org 2005-10-25 12:40 -------
(In reply to comment #0)
> *memptr++ = (unsigned char)donothing(*memptr, 0);
This expression modifies memptr after accessing it for something other
than determining the new value without an intervening sequence point. The
behavior is thus undefined (C99 6.5/2). With -Wall, you even get a warning
about this.
--
falk at debian dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24517