[Bug c/107846] [13 Regression] error: result of '8000 << 8' requires 22 bits to represent, but 'short int' only has 16 bits
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Nov 23 19:20:57 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107846
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
CC| |jakub at gcc dot gnu.org,
| |sayle at gcc dot gnu.org
Keywords|needs-bisection |
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r13-1100-gacb1e6f43dc2bbedd1248ea61c7ab537a11fe59b
So, either we should limit that new match.pd folding to GIMPLE, or
should take into account such narrowing vs. integral promotion.
More information about the Gcc-bugs
mailing list