This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/63818] unexpected/incorrect behavior
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 11 Nov 2014 16:48:18 +0000
- Subject: [Bug c/63818] unexpected/incorrect behavior
- Auto-submitted: auto-generated
- References: <bug-63818-4 at http dot gcc dot gnu dot org/bugzilla/>
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