This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/60103] Spurious -Wsequence-point warning with -O1
- 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: Thu, 06 Feb 2014 23:55:38 +0000
- Subject: [Bug c/60103] Spurious -Wsequence-point warning with -O1
- Auto-submitted: auto-generated
- References: <bug-60103-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60103
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I think C11 and C90/C99 have a different idea here. There is a relative
sequence point between the function call fn2 and the 0 but there is no sequence
point between the two assignments I think.
Sequence points are not my area of expertise so I could be wrong but I do know
that C11/C++11 does get rid of the idea of sequence points and change the name
of it to something else.