gcc/testsuite/g++.dg/lookup/scoped7.C
raw| 1 | //PR c++/11507 |
| 2 | // Origin: [email protected] and [email protected] |
| 3 | //The new parser used to fail on this. |
| 4 | |
| 5 | // { dg-do compile } |
| 6 | |
| 7 | namespace NS |
| 8 | { |
| 9 | void foo(bool arg1); |
| 10 | } |
| 11 | |
| 12 | namespace M { |
| 13 | namespace K { |
| 14 | bool Bc(bool x); |
| 15 | } |
| 16 | |
| 17 | void bar() { |
| 18 | NS::foo (K::Bc(true)); // GCC could not find K or Bc. |
| 19 | } |
| 20 | } |