OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.dg/] [template/] [spec19.C] - Rev 12

Compare with Previous | Blame | View Log

// PR c++/18962

template<class T1,int N1>
class Class
{
public:
  template <class T2,int N2>
  void function( const Class<T2,N2>& );
};

template<>
template<class T2,int N2>
void Class<int,1>::function( const Class<T2,N2>& param ) 
{
  param; // make sure we use the argument list from the definition.
}

int main()
{
  Class<int,1> instance;
  Class<char,2> param;
  instance.function( param );
}

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.