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/24517] casting problem



------- 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


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