public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/53609] New: Wrong variadic template pack expansion
@ 2012-06-08  8:59 Gaetano.Checinski at googlemail dot com
  2012-06-08  9:50 ` [Bug c++/53609] Wrong variadic template pack expansion in alias template redi at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Gaetano.Checinski at googlemail dot com @ 2012-06-08  8:59 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53609
           Summary: Wrong variadic template pack expansion
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: Gaetano.Checinski@googlemail.com


g++-4.7 missinterperts folowing code :


template<class...I> struct List{};
template<int I> struct Z{ static constexpr int value=I;};
template<int...I> using NumList = List<  Z<I>... >;

template<class L>struct Mover;
template<template<class...>class C, class...I>
struct Mover<C<I...>>
{
    using NL = NumList< I::value... > ;  // aka :  List<  Z<I>... >
    // missinterpreted as : List< Z<I...> >
};

using L=List< Z<1>,Z<2>,Z<3> >; // Works fine
using L2= NumList< 1,2,3 >; // Works also fine

Mover< L >::NL A; // dont work : should be 1 not 3 args in 'Z'


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

end of thread, other threads:[~2013-01-30 11:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-08  8:59 [Bug c++/53609] New: Wrong variadic template pack expansion Gaetano.Checinski at googlemail dot com
2012-06-08  9:50 ` [Bug c++/53609] Wrong variadic template pack expansion in alias template redi at gcc dot gnu.org
2012-08-21  6:37 ` dodji at gcc dot gnu.org
2012-09-20  8:48 ` dodji at seketeli dot org
2013-01-22 10:05 ` dodji at gcc dot gnu.org
2013-01-30 11:45 ` dodji 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).