From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C2F183834F10; Mon, 6 Jun 2022 14:22:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C2F183834F10 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/105844] [10/11/12/13 Regression] std::lcm(50000, 49999) is UB but accepted in a constexpr due to cast to unsigned Date: Mon, 06 Jun 2022 14:22:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 12.1.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on priority bug_status cf_known_to_fail cf_known_to_work everconfirmed short_desc assigned_to keywords target_milestone 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jun 2022 14:22:08 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105844 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2022-06-06 Priority|P3 |P2 Status|UNCONFIRMED |ASSIGNED Known to fail| |10.3.0, 11.1.0, 12.1.0, | |13.0, 9.4.0 Known to work| |10.2.0, 9.3.0 Ever confirmed|0 |1 Summary|std::lcm(50000, 49999) is |[10/11/12/13 Regression] |UB but accepted in a |std::lcm(50000, 49999) is |constexpr due to cast to |UB but accepted in a |unsigned |constexpr due to cast to | |unsigned Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu= .org Keywords| |accepts-invalid Target Milestone|--- |10.4 --- Comment #4 from Jonathan Wakely --- This is a regression introduced by the fix for PR 92978.=