From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9638E3857C75; Sun, 16 Aug 2020 10:46:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9638E3857C75 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1597574814; bh=KSAChRjF2DTR30yX5z+UFXJlXijxoFe/MFmBMdo82P0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rho9Wig2fRRcsijk23kn/ZlL2w36PfEQmt8dVGh9CzEsbuBPfgODr3a8fa1DwdAd8 8NNMqY5/RMGKQUrBsnQvAT5ZBm53HPFdNTkUexF5pc7q7E3rN8GEc13+FyY/qh1FiO rL7QUjBU1LmQ55Xl0lqZF+nRlSDarhGwY1E4Zkk8= From: "dcrocker at eschertech dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/61372] Add warning to detect noexcept functions that might throw Date: Sun, 16 Aug 2020 10:46:54 +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: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: dcrocker at eschertech dot com 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: cc 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: Sun, 16 Aug 2020 10:46:54 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D61372 David Crocker changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcrocker at eschertech dot= com --- Comment #1 from David Crocker --- I too would find this very useful. However, it's essential that functions declared 'extern "C" ' are (or optionally can be) assumed to not throw exceptions. Otherwise, calls to C library functions and MCU vendor-supplied= C header files from C++ functions declared 'noexcept' will trigger this warni= ng. Also, the warning should be disabled when -fno-exceptions is used.=