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/16309] different behavior in lvalue assignment in -O0 & -O2


------- Additional Comments From falk at debian dot org  2004-07-01 09:08 -------
With -Wall, you get:

test.c:9: warning: operation on `i' may be undefined

and in fact it is; see documentation on -Wsequence-point.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID
            Summary|different behavior in lvalue|different behavior in lvalue
                   |assignment in -O0 & -O2     |assignment in -O0 & -O2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16309


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