OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [koenig6.C] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/17365
2
// ADL should not find B::N.
3
 
4
namespace A
5
{
6
  namespace B
7
  {
8
    template  struct N {int n_;};
9
  }
10
  template  int N( T p ) { return p->n_; }
11
  template  void f( T p ) { N(p); }  // #1
12
}
13
int main()
14
{
15
  A::B::N n;
16
  A::f(&n);
17
  return 0;
18
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.