URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [typename13.C] - Rev 149
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// { dg-options "-fpermissive" }
template <class T>
struct B
{
typedef int I;
};
template <class T>
struct D : public B<T>
{
void f();
};
template <class T>
void D<T>::f()
{
I(); // { dg-warning "" }
}
template <>
struct B<int>
{
void I();
};
int main()
{
D<int> di;
di.f();
}
Go to most recent revision | Compare with Previous | Blame | View Log