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/60103] Spurious -Wsequence-point warning with -O1


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.


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