From 8062e4e9a4998cfa44002afd2435ff9083e092e8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 11 May 2012 10:40:02 +0200 Subject: Fix lookup bug --- cli/parser.cxx | 2 +- 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 (n, name, unit, false); + return lookup (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. } } -- cgit v1.1