URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [template/] [spec19.C] - Rev 308
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/18962
template<class T1,int N1>
class Klasse
{
public:
template <class T2,int N2>
void function( const Klasse<T2,N2>& );
};
template<>
template<class T2,int N2>
void Klasse<int,1>::function( const Klasse<T2,N2>& param )
{
param; // make sure we use the argument list from the definition.
}
int main()
{
Klasse<int,1> instance;
Klasse<char,2> param;
instance.function( param );
}
Go to most recent revision | Compare with Previous | Blame | View Log