From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6CE4C3858D37; Fri, 5 Apr 2024 22:05:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6CE4C3858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712354703; bh=SZtRVyJB4/G5UcYjIRXdU52W2oxdcYA0s5Kw2cCt6Fo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Np6HZKbUwJhV5ebVMMUaGhN0Z4UOkwdgVIhecisW52PI7dqvmYSUhYuUTNgHsWHb3 /zq1mSTG4+zYoN3aOiPE7kVf7U1IHs8iBexUceBURV/KqckVLiz7oDnuiXpf7QH8tq 9RIRkj+WnkUqQZQD/7qeOEf9IxxomhuTBlKWqijQ= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86373] Destructor shall not be instantiated in C++17 mode for prvalue Date: Fri, 05 Apr 2024 22:05:02 +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: 9.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW 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: 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=3D86373 --- Comment #2 from Andrew Pinski --- >Clang compiles both of the above examples. While MSVC rejects both examples.=20 And EDG rejects the first (can't test the second one though). Note also EDG, and MSVC also reject the example in the Defect report linked here while GCC and clang accept it. So ....=