public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/57384] New: can't expand a parameter pack into a list of function types or function pointer types
@ 2013-05-23  6:51 eric.niebler at gmail dot com
  2013-05-23  9:14 ` [Bug c++/57384] " redi at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: eric.niebler at gmail dot com @ 2013-05-23  6:51 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57384

            Bug ID: 57384
           Summary: can't expand a parameter pack into a list of function
                    types or function pointer types
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: eric.niebler at gmail dot com

I believe all of the following 4 test cases should pass:

  template<typename ...Ts>
  struct list
  {};

  template<typename ...Ts>
  struct S
  {
      using type1 = void(int...(Ts));    // fails
      using type2 = list<int...(Ts)>;    // fails
      using type3 = void(int(*...)(Ts)); // fails
      using type4 = list<int(*...)(Ts)>; // works with 4.7, fails with 4.8
  };

Currently (i.e. with gcc-4.8), 1-4 all fail. With gcc-4.7, (4) worked. I'm
compiling with -std=gnu++11


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

end of thread, other threads:[~2013-05-23 21:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-23  6:51 [Bug c++/57384] New: can't expand a parameter pack into a list of function types or function pointer types eric.niebler at gmail dot com
2013-05-23  9:14 ` [Bug c++/57384] " redi at gcc dot gnu.org
2013-05-23 16:37 ` daniel.kruegler at googlemail dot com
2013-05-23 21:57 ` eric.niebler at gmail 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).