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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-11-25
     Ever confirmed|0                           |1
           Severity|normal                      |enhancement

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(A) seems pointless in this case, it's right there in the caret diagnostic.

The type size_t is irrelevant.

IMO a better testcase would be:

const int n = 41;
auto x = 1 << n;

Reply via email to