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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2023-01-10
      Known to fail|                            |7.1.0, 8.1.0
           Keywords|                            |diagnostic
      Known to work|                            |6.1.0, 6.4.0
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
A compile time testcase:

constexpr char b[23] = {1};
long t = long((unsigned long)(-2147483647 - 1))
    / long(b[0] ? -1 : 0);

This should not warn with -std=c++11 .

Confirmed.

Reply via email to