https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102029
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Roger Sayle <sa...@gcc.gnu.org>: https://gcc.gnu.org/g:78fa5112b4c2dcd94b78ee79baddebbf14d6ad98 commit r12-3104-g78fa5112b4c2dcd94b78ee79baddebbf14d6ad98 Author: Roger Sayle <ro...@nextmovesoftware.com> Date: Tue Aug 24 02:59:02 2021 +0100 [Committed] PR middle-end/102029: Stricter typing in LSHIFT_EXPR sign folding. My sincere apologies to everyone (again). As diagnosed by Jakub Jelinek, my recent patch to fold the signedness of LSHIFT_EXPR needs to be careful not to attempt transforming a left shift in an integer type into an invalid left shift of a pointer type. 2021-08-24 Roger Sayle <ro...@nextmovesoftware.com> Jakub Jelinek <ja...@redhat.com> gcc/ChangeLog PR middle-end/102029 * match.pd (shift transformations): Add an additional check for !POINTER_TYPE_P in the recently added left shift transformation. gcc/testsuite/ChangeLog PR middle-end/102029 * gcc.dg/fold-convlshift-3.c: New test case.