From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B816C3861C4D; Wed, 23 Nov 2022 19:20:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B816C3861C4D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669231257; bh=xzP3rYni6YoKE4ixUMjGGLZ/3Q/zNug6vvwb01q30qw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=iIyGWi7ZyNYt0pHBFeB9CNWRUNNLLM1DHJVATENVWiQDMH0BOHzNG9C2fGdS5aHpQ sqRl2muTyF28k5FkVuLjvz5EZFztqmLZ+z8ev2c3OyXOL/fHV5QMndQzCTKB55EN0U A/Ll8QPctn9s+N4/VZ39MfqVvMuETHmpBhxSjfic= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/107846] [13 Regression] error: result of '8000 << 8' requires 22 bits to represent, but 'short int' only has 16 bits Date: Wed, 23 Nov 2022 19:20:57 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority cc keywords Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107846 Jakub Jelinek 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 --- 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.=