URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [typename6.C] - Rev 749
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
template <class T>
struct A
{
typedef T A_Type;
};
template <class U>
struct B : public A<U>
{
A_Type Func(); // { dg-error "does not name a type" "err" }
// { dg-message "note" "note" { target *-*-* } 13 }
};
template <class U>
A<U>::A_Type B<U>::Func() // { dg-error "typename" } function
{
}
Go to most recent revision | Compare with Previous | Blame | View Log