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: "pinskia 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 17:37:43 +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
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
With the line:
testouter(++i, ++i, ++i);
There is no sequence point between the pre-increments of i as common inside a
function call is not a sequence point. So the order of which arguments are
evaluated is not defined in the standard which is why you get different
behavior between two different compilers.