diff options
-rw-r--r-- | cli/parser.cxx | 2 | ||||
-rw-r--r-- | tests/parser/test-007.cli | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/cli/parser.cxx b/cli/parser.cxx index 00803f2..8289fce 100644 --- a/cli/parser.cxx +++ b/cli/parser.cxx @@ -1350,7 +1350,7 @@ lookup (string const& ss, string const& name, cli_unit* unit, bool outer) if (outer && !ss.empty ()) { string n (ss, 0, ss.rfind ("::")); - return lookup<T> (n, name, unit, false); + return lookup<T> (n, name, unit, true); } return 0; diff --git a/tests/parser/test-007.cli b/tests/parser/test-007.cli index 3e5ca7f..b890a34 100644 --- a/tests/parser/test-007.cli +++ b/tests/parser/test-007.cli @@ -19,9 +19,10 @@ namespace n1 namespace i1 { - class c10: c4 {}; // Outer scope. - class c11: b3 {}; // From included. - class c12: b2 {}; // Outer scope from included. + class c10: c4 {}; // Outer scope. + class c11: b3 {}; // From included. + class c12: b2 {}; // Outer scope from included. + class c4: n1::c4 {}; // Qualified name from outer scope. } } |