From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9B58C3858D32; Sun, 2 Oct 2022 19:41:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9B58C3858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664739719; bh=TE8hbf+JR3Dz2VoOsCoUUyCTXgui4L4RN8rbc/SZKqk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=X68+aad4bDmeM2B3/Y2cuec6q4bLWLyg5VJ0pBIeyJebASlYzGHA3L64oaSreYAHE WF2v9MSRvvJ0flueBwIo6Gy5KjDfTgAxEhSw4fd1aZY5GdwPvwJywb/hy7fLU5w2Ho Wvkjg/gMkByFPVotlM2uJCAvjRrPHp/yO+/FiN3s= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107126] GCC accepts invalid out of class definition for destructor with C++17 Date: Sun, 02 Oct 2022 19:41: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: 12.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub 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: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107126 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek --- This is rejected with -std=3Dc++20 since r11-532-g4b38d56dbac6742b038551a36ec80200313123a1 and the commit log states that it is intentional to apply it only for C++20 mode because the DR wasn't against C++17. So why do you think otherwise? https://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#2237 also states: (Note that this resolution is a change for C++20, NOT a defect report again= st C++17 and earlier versions.)=