This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/81947] New: variadic template specialization doesn't compile


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81947

            Bug ID: 81947
           Summary: variadic template specialization doesn't compile
           Product: gcc
           Version: 4.4.7
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: manish.baphna at citi dot com
  Target Milestone: ---

->cat vartemp.cpp & g++ vartemp.cpp -std=c++0x
template <class ...Type>
void send(const Type& ...args)
{
}

template <>
void send(const int&x, const double& y)
{
}

int main(){

}
vartemp.cpp:7: error: template-id âsend<>â for âvoid send(const int&, const
double&)â does not match any template declaration

gcc version 4.4.7 20120313

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]