summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/scoped7.C
blob: a9d70d06e3be5e48f07fc7761e81dc3a878ddb92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//PR c++/11507
// Origin: kai-gcc-bugs@khms.westfalen.de and bangerth@dealii.org
//The new parser used to fail on this.

// { dg-do compile }

namespace NS
{
  void foo(bool arg1);
}

namespace M {
  namespace K {
    bool Bc(bool x);
  }

  void bar() {
    NS::foo (K::Bc(true)); // GCC could not find K or Bc.
  }
}