URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [koenig6.C] - Rev 320
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