diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-05-11 10:40:02 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-05-11 10:40:02 +0200 |
commit | 8062e4e9a4998cfa44002afd2435ff9083e092e8 (patch) | |
tree | 3c3a53c0f7e03309a1a83896bd01e90348ec741f | |
parent | 0a1c72f32cd709972d6e4e5591dfd05d91edc8e1 (diff) |
Fix lookup bug
-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. } } |