[Bug c++/51180] New: [C++0x][C++11] inner class alias-definition variadic template error

trashyankes at wp dot pl gcc-bugzilla@gcc.gnu.org
Wed Nov 16 20:50:00 GMT 2011


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

             Bug #: 51180
           Summary: [C++0x][C++11] inner class alias-definition variadic
                    template error
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: trashyankes@wp.pl


gcc version 4.7.0 20111108 (experimental) (niXman build)

code:
---------------------------
---------------------------

template<class, class>
struct t2 //error: provided for 'template<class, class> struct t2'
{

};

template<template<class...> class M>
struct m
{
template<class... B>
using inner = M<B...>; //error: wrong number of template arguments (1, should
be 2)
};

m<t2> sta2;

---------------------------
---------------------------



More information about the Gcc-bugs mailing list