URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [typename3.C] - Rev 384
Compare with Previous | Blame | View Log
// { dg-do assemble }
// { dg-options "-Wno-deprecated" }
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" } implicit typename
// { dg-message "note" "note" { target *-*-* } 14 }
};
template <class U>
B<U>::A_Type B<U>::Func() { // { dg-error "typename" } implicit typename
} // { dg-error "expected" }