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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
GCC gives a warning with -Wall:
<source>: In function 'int main()':
<source>:5:11: warning: operation on 'a' may be undefined [-Wsequence-point]
    5 |   int b = ++a + a++;
      |           ^~~

>It is not clear which compiler's answer is correct
Both are correct for C.

Reply via email to