[Bug c/20531] gcc should warn about undefined behaviour
jsm28 at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Mar 19 13:18:00 GMT 2005
------- Additional Comments From jsm28 at gcc dot gnu dot org 2005-03-19 13:18 -------
I see no undefined behavior here. The order is unspecified, not undefined,
and there is nothing more wrong with accessing two volatile objects between
sequence points than there would be in (s.x = 1) + (s.y = 2) modifying
both objects (volatile or not) without an intervening sequence point.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20531
More information about the Gcc-bugs
mailing list