public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "usagi at WonderRabbitProject dot net" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/65750] New: miss interpret in a virtual member function with a C++11 style function signature Date: Mon, 13 Apr 2015 02:54:00 -0000 [thread overview] Message-ID: <bug-65750-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65750 Bug ID: 65750 Summary: miss interpret in a virtual member function with a C++11 style function signature Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: usagi at WonderRabbitProject dot net Repro: #include <functional> class a { virtual auto f( std::function< void () > ) -> void; virtual auto g( std::function< auto () -> void > ) -> void; }; auto main() -> int { } Result 1 ( g++-5.0.0, 4.9.2 and >= 4.9.0 ): prog.cc:6:16: error: implicit templates may not be 'virtual' virtual auto g( std::function< auto () -> void > ) -> void; Result 2 ( g++-4.8.2, g++4.7.3 ): (no errors, compile is succeed.) Result 3 ( clang++-3.7.0, 3.6.0, 3.5.0 and 3.4 ) (no errors, compile is succeed.)
next reply other threads:[~2015-04-13 2:54 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-04-13 2:54 usagi at WonderRabbitProject dot net [this message] 2015-04-13 9:21 ` [Bug c++/65750] [4.9/5 Regression] misinterpret " redi at gcc dot gnu.org 2015-04-13 20:58 ` jason at gcc dot gnu.org 2015-04-13 21:20 ` abutcher at gcc dot gnu.org 2015-04-14 9:17 ` jakub at gcc dot gnu.org 2015-05-22 15:29 ` paolo.carlini at oracle dot com 2015-06-24 15:13 ` paolo.carlini at oracle dot com 2015-06-29 9:35 ` paolo at gcc dot gnu.org 2015-06-29 9:36 ` paolo.carlini at oracle dot com
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-65750-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).