From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B31073861037; Mon, 24 Aug 2020 20:11:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B31073861037 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1598299919; bh=N57quSrSJ5pyxhbbZyPXGGVkxVfymCsYbqJ3MuS9SdI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Ybw0FoV+gakNJ/xr5M8Y80ZvNUPXo9BREgkiEIKSRrAtFhvagJ29qqaM8hB6sWM6C pR3jQm2wY3ydX8yG9Gj//dznzpAqdoU1yRKMRHDae2oSt78Qd+qJFTwdC4KoIiDBIb CU6AS7FMgeFuEJYMfQRLK1kaEPBWhQLFrqJKFjss= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/61372] Add warning to detect noexcept functions that might throw Date: Mon, 24 Aug 2020 20:11:59 +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: 4.9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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 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, 24 Aug 2020 20:11:59 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D61372 --- Comment #7 from Andrew Pinski --- (In reply to Jonathan Wakely from comment #2) > extern "C" functions can throw, so it would be wrong to unconditionally > assume they can't. Yes that is correct. Even extern "C" functions could be written in C++ to provide an interface from C to C++ code.=