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/] [cpp0x/] [vt-34314.C] - Rev 301
Compare with Previous | Blame | View Log
// { dg-options "-std=c++0x" }
template<typename Fun, typename... Args> // { dg-error "template parameter" }
struct call;
template<typename Fun, typename Arg0>
struct call // { dg-error "redeclared here" }
{
template<typename Sig>
struct result;
template<typename X, typename Y>
struct result<X(Y)>
{
typedef X type;
};
};
template<typename Fun, int... N> // { dg-error "template parameter" }
struct call2;
template<typename Fun, int N>
struct call2 // { dg-error "redeclared here" }
{
template<typename Sig>
struct result;
template<typename X, typename Y>
struct result<X(Y)>
{
typedef X type;
};
};
template<typename Fun, template<typename> class... TT> // { dg-error "template parameter" }
struct call3;
template<typename Fun, template<typename> class TT>
struct call3 // { dg-error "redeclared here" }
{
template<typename Sig>
struct result;
template<typename X, typename Y>
struct result<X(Y)>
{
typedef X type;
};
};