public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "sss@li-snyder.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug plugins/98059] New: [11 regression] Plugins don't compile with c++20 Date: Sun, 29 Nov 2020 23:05:27 +0000 [thread overview] Message-ID: <bug-98059-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98059 Bug ID: 98059 Summary: [11 regression] Plugins don't compile with c++20 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: plugins Assignee: unassigned at gcc dot gnu.org Reporter: sss@li-snyder.org Target Milestone: --- The following example fails with gcc 11 (20201128): $ echo '#include "gcc-plugin.h"' | g++ -x c++ -std=c++20 -c -o x.o - -I`g++ -print-file-name=plugin`/include In file included from /usr/local/gcc/lib/gcc/x86_64-pc-linux-gnu/11.0.0/plugin/include/config.h:8, from /usr/local/gcc/lib/gcc/x86_64-pc-linux-gnu/11.0.0/plugin/include/gcc-plugin.h:27, from <stdin>:1: /usr/local/gcc/lib/gcc/x86_64-pc-linux-gnu/11.0.0/plugin/include/ansidecl.h:424:9: error: expected unqualified-id before ‘const’ 424 | TYPE (const TYPE&) = delete; \ | ^~~~~ /usr/local/gcc/lib/gcc/x86_64-pc-linux-gnu/11.0.0/plugin/include/vec.h:1605:3: note: in expansion of macro ‘DISABLE_COPY_AND_ASSIGN’ 1605 | DISABLE_COPY_AND_ASSIGN(auto_delete_vec<T>); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/gcc/lib/gcc/x86_64-pc-linux-gnu/11.0.0/plugin/include/ansidecl.h:424:9: error: expected ‘)’ before ‘const’ 424 | TYPE (const TYPE&) = delete; \ | ~^~~~~ /usr/local/gcc/lib/gcc/x86_64-pc-linux-gnu/11.0.0/plugin/include/vec.h:1605:3: note: in expansion of macro ‘DISABLE_COPY_AND_ASSIGN’ 1605 | DISABLE_COPY_AND_ASSIGN(auto_delete_vec<T>); | ^~~~~~~~~~~~~~~~~~~~~~~ Can be fixed with this patch: diff --git a/gcc/vec.h b/gcc/vec.h index 14d77e87342..90904515ea0 100644 --- a/gcc/vec.h +++ b/gcc/vec.h @@ -1602,7 +1602,7 @@ class auto_delete_vec : public auto_vec <T *> ~auto_delete_vec (); private: - DISABLE_COPY_AND_ASSIGN(auto_delete_vec<T>); + DISABLE_COPY_AND_ASSIGN(auto_delete_vec); }; /* Conditionally allocate heap memory for VEC and its internal vector. */
next reply other threads:[~2020-11-29 23:05 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-11-29 23:05 sss@li-snyder.org [this message] 2020-11-30 8:13 ` [Bug plugins/98059] " rguenth at gcc dot gnu.org 2020-12-02 13:55 ` jakub at gcc dot gnu.org 2020-12-02 14:44 ` cvs-commit at gcc dot gnu.org 2020-12-02 16:20 ` redi at gcc dot gnu.org 2020-12-02 16:22 ` redi at gcc dot gnu.org 2020-12-02 16:27 ` jakub at gcc dot gnu.org 2020-12-02 16:29 ` redi at gcc dot gnu.org 2020-12-02 16:31 ` jakub at gcc dot gnu.org 2021-01-06 9:39 ` cvs-commit at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-98059-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).