From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BCE493858D32; Wed, 19 Oct 2022 00:39:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BCE493858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666139956; bh=EJv0BHbG1dpBmfHMpN99T/HDlyKYqliMu0QfLK7F6qw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XuTzShg5bArLQO3Y6bPP3yRcdQSf4N87Eef2PYcCtVNpApIsZ5+XKd5n91bCKdarj nxPMegoqRQfVYPmshTPAEeDNXNAaVxSfRHuLIu28J/6H/bnXe6TmThiqosSlRn/vhn vNKsuZSyip+RgZFQ5T1/xhkfoHe8BfWLy47DF3mw= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107310] [12/13 Regression] "warning: control reaches end of non-void function" with a throw under a trivially-true conditional Date: Wed, 19 Oct 2022 00:39:16 +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: 12.1.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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=3D107310 --- Comment #2 from Andrew Pinski --- Note the warning happens at -O0 only.=