URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [alias-decl-5.C] - Rev 774
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-options "-std=c++0x" }
// alias template of a partial specialization
template<class T, class U, class W> struct S0 {};
template<class T, class U> struct S0<T, U, char> {};
template<class T> using AS0 = S0<T, int, char>;
void foo(S0<bool, int, char>);
AS0<bool> a; // OK
void
f()
{
foo(a); //OK
}
// alias template of an explicit specialization of a member template
template<class T>
struct S1 {
template<class U>
struct M {};
};
template<class T> using AM = S1<int>::M<T>;
void bar(S1<int>::M<bool>);
AM<bool> b; //OK.
void
g()
{
bar(b); //OK
}
Go to most recent revision | Compare with Previous | Blame | View Log