public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/65750] New: miss interpret in a virtual member function with a C++11 style function signature
@ 2015-04-13  2:54 usagi at WonderRabbitProject dot net
  2015-04-13  9:21 ` [Bug c++/65750] [4.9/5 Regression] misinterpret " redi at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: usagi at WonderRabbitProject dot net @ 2015-04-13  2:54 UTC (permalink / raw)
  To: gcc-bugs

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.)


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-06-29  9:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-13  2:54 [Bug c++/65750] New: miss interpret in a virtual member function with a C++11 style function signature usagi at WonderRabbitProject dot net
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

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).