URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [template/] [using14.C] - Rev 399
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/26102
template <class T> struct B1 { int i(); };
struct B2 { int i(); };
template <class T> struct C : public B1<T>, public B2
{
using B2::i;
void f()
{
i(); // should be accepted
i.i(); // { dg-error "member" }
}
};
int main()
{
C<int> c;
c.f(); // { dg-message "instantiated" }
}
Go to most recent revision | Compare with Previous | Blame | View Log