summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/ambig4.C
blob: 868f07cf783eb4fc328807ff7653ca37894c1923 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// PR c++/20293

namespace hide { // { dg-error "hide" }
  int k;
}

namespace {
  int i; 
  namespace hide { // { dg-error "hide" }
    int j; 
  }
}

void F(int) {}

int main() {
  F(hide::j); // { dg-error "ambiguous" }
}