[Bug c/96549] [10/11 Regression] Wrong evaluation of a comparison between long & short

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Aug 10 08:09:44 GMT 2020


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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org
   Last reconfirmed|                            |2020-08-10
            Summary|Wrong evaluation of a       |[10/11 Regression] Wrong
                   |comparison between long &   |evaluation of a comparison
                   |short                       |between long & short

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Thank you for the report!

Slighly modified test-case:

long c = -1L;
long b = 0L;
int main(void) {
  if (3L > (short) ((c ^= (b = 1L)) * 3L))
    return 0;
  __builtin_abort ();
}

Started with r10-7921-gbca558de2a24b2a7.


More information about the Gcc-bugs mailing list