From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BC474385E019; Sat, 17 Feb 2024 14:29:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BC474385E019 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1708180180; bh=R6rON5qU1hkbplJw70UDAComoEcpfIKIIw0WdG4Zvqc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=U41pxQVV4jIXe4XCe/V+HDf/8+lGJ3JC7A0UKQi+VbMXmbaVY2z3VE+3IWisczAe1 wTDayCTHliDMK+ksXXa8XJjZjuqiq39AMj6QYJsJ+QrVtwpMtrl7umkp5qvfx35IYn XfWOWU8nu1fABamlhLD2iVEucjwEW+4wBazc/u5g= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/113158] [11/12/13/14 Regression] Erroneous "looser exception specification" error for class template and depedent noexcept value Date: Sat, 17 Feb 2024 14:29:39 +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.2.0 X-Bugzilla-Keywords: patch, rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.5 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=3D113158 --- Comment #4 from GCC Commits --- The trunk branch has been updated by Marek Polacek : https://gcc.gnu.org/g:876fa432ef4074053fa65b1855e7d43320515576 commit r14-9047-g876fa432ef4074053fa65b1855e7d43320515576 Author: Marek Polacek Date: Thu Feb 15 17:07:43 2024 -0500 c++: wrong looser excep spec for dep noexcept [PR113158] Here we find ourselves in maybe_check_overriding_exception_spec in a template context where we can't instantiate a dependent noexcept. That's OK, but we have to defer the checking otherwise we give wrong errors. PR c++/113158 gcc/cp/ChangeLog: * search.cc (maybe_check_overriding_exception_spec): Defer chec= king when a noexcept couldn't be instantiated & evaluated to false/t= rue. gcc/testsuite/ChangeLog: * g++.dg/cpp0x/noexcept83.C: New test.=