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/63818] unexpected/incorrect behavior


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63818

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |mpolacek at gcc dot gnu.org
         Resolution|---                         |INVALID

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
You're invoking undefined behavior:

test.c:16:23: warning: operation on âiâ may be undefined [-Wsequence-point]
   testouter(++i, ++i, ++i); // 3 3 3 initially, then 3 2 1 when below line is
uncommented

http://c-faq.com/expr/seqpoints.html

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