URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [using44.C] - Rev 742
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/30195
// { dg-do run }
template <class T>
struct B
{
void foo(char) { __builtin_abort(); }
void foo(short) { __builtin_abort(); }
void foo(T) {}
};
template<class T>
struct Out
{
struct D : B<T>, B<double>
{
using B<T>::foo;
using B<double>::foo;
void bar() { foo(3); }
};
};
int main()
{
Out<int>::D x;
x.bar();
return 0;
}
Go to most recent revision | Compare with Previous | Blame | View Log