URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [koenig6.C] - Rev 774
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/17365
// ADL should not find B::N.
namespace A
{
namespace B
{
template <typename T> struct N {int n_;};
}
template <typename T> int N( T p ) { return p->n_; }
template <typename T> void f( T p ) { N(p); } // #1
}
int main()
{
A::B::N<int> n;
A::f(&n);
return 0;
}
Go to most recent revision | Compare with Previous | Blame | View Log