From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3BAF43858416; Thu, 3 Nov 2022 19:11:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3BAF43858416 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667502705; bh=URC6YDp/+xaQOVAr5fS6XPmasXyoLzErI2P9xDquE30=; h=From:To:Subject:Date:In-Reply-To:References:From; b=SdCWMqe+DTwyYc9Sbo9Ql+vvfwvYxEw/Zf1mCbKmioz0VfVdRcWqZ/D6e9D1jsnfA O4dUsqMWZs0biEsBE/BMEJkMYYjcuXPFXmrl08ZXYPXDsypOoJVdQ9uHZp2mGRFjVX wAIHS915i5r5b3BUZE6TZXjwhG6V/7jg9gkEp5t0= From: "ppalka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/93413] Defaulted constexpr Destructor not being found during constant evaluation Date: Thu, 03 Nov 2022 19:11:44 +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: 10.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: ppalka at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ppalka at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D93413 Patrick Palka changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|ASSIGNED |RESOLVED Target Milestone|--- |13.0 --- Comment #11 from Patrick Palka --- Fixed for GCC 13. The fix is probably unsuitable for backporting, and there are workarounds anyway -- one workaround is to turn the problematic class i= nto a class template with an explicitly defaulted dtor, e.g. for the original testcase do: struct Base { constexpr virtual ~Base(){} }; template struct Derived: Base { ~Derived() =3D default; }; constexpr Derived<> d;=