From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 72DA4395C824; Wed, 2 Dec 2020 14:44:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 72DA4395C824 From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug plugins/98059] [11 regression] Plugins don't compile with c++20 Date: Wed, 02 Dec 2020 14:44:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: plugins X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit 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: 11.0 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Dec 2020 14:44:00 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98059 --- Comment #2 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:bad800c03d00a57fc21718c160459d9a1e8d747a commit r11-5660-gbad800c03d00a57fc21718c160459d9a1e8d747a Author: Scott Snyder Date: Wed Dec 2 15:42:56 2020 +0100 vec.h: Fix GCC build with -std=3Dgnu++20 [PR98059] Apparently vec.h doesn't build with -std=3Dc++20/gnu++20, since the DR2237 r11-532 change. template class auto_delete_vec { private: auto_vec_delete (const auto_delete_vec &) =3D delete; }; which vec.h uses is invalid C++20, one needs to use auto_vec_delete (const auto_delete_vec &) =3D delete; instead which is valid all the way back to C++11 (and without =3D delete to C++98). 2020-12-02 Scott Snyder PR plugins/98059 * vec.h (auto_delete_vec): Use DISABLE_COPY_AND_ASSIGN(auto_delete_vec) instead of DISABLE_COPY_AND_ASSIGN(auto_delete_vec) to make it valid C+= +20 after DR2237.=