From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BDBEF386075D; Sun, 2 Oct 2022 20:49:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BDBEF386075D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664743752; bh=muYaOMFAvt9h7v0mrUFtILRf1ibH1GZcvNcFqku3lRY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IU5FQf2HG1EOVvGo40B3iiUnr6TsDHNGQ5TmoPfv+lEJNnx8p56EBEHSfuhLActwF uatHvoEnnFD3J02eCPs9w1hCS7YGdS9UwL02TBCBz8ti7nvcOGIufoXWiecN4U/wqC XBGwqMc5JZvA3UylJqo4boC30HFC80/bctgu7HFE= 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 20:49:12 +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| |mpolacek at gcc dot gnu.org --- Comment #4 from Jakub Jelinek --- (In reply to Jason Liam from comment #2) > Second, i'm already aware that this is rejected by gcc with c++20 as i > provided a demo link https://godbolt.org/z/TYjEzss6q at the first line of= my > bug report. One thing is to know that some versions of g++ do that, but the above provi= des details on what change actually changed the behavior, which is useful information for any further changes. Then it is https://cplusplus.github.io/CWG/issues/1435.html which we perhaps don't implement or don't implement fully.=