public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/54440] New: [c++11] g++ prematurely applying rule that a template parameter pack cannot be followed by a template parameter
@ 2012-08-31 18:09 eric.niebler at gmail dot com
  2013-02-22 14:48 ` [Bug c++/54440] " jason at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: eric.niebler at gmail dot com @ 2012-08-31 18:09 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 54440
           Summary: [c++11] g++ prematurely applying rule that a template
                    parameter pack cannot be followed by a template
                    parameter
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: eric.niebler@gmail.com


The following code:

  template<int...I>
  struct S
  {
    template<template<decltype(I)> class...A, template<int> class B>
    struct T;
  };

yields:

  main.cpp:5:12: error: parameter pack ‘A’ must be at the end of the template
parameter list

I believe this is erroneous, as does clang developer Richard Smith. After S is
instantiated, A instantiates to a non-pack.


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

end of thread, other threads:[~2014-02-26 17:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-31 18:09 [Bug c++/54440] New: [c++11] g++ prematurely applying rule that a template parameter pack cannot be followed by a template parameter eric.niebler at gmail dot com
2013-02-22 14:48 ` [Bug c++/54440] " jason at gcc dot gnu.org
2013-06-07 20:16 ` paolo.carlini at oracle dot com
2014-01-29 20:07 ` richard-gccbugzilla at metafoo dot co.uk
2014-02-26 17:09 ` jason at gcc dot gnu.org
2014-02-26 17:10 ` jason at gcc dot gnu.org

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