OSDN Git Service

/cp
[pf3gnuchains/gcc-fork.git] / gcc / cp / semantics.c
index 054a83e..46789f7 100644 (file)
@@ -2928,7 +2928,7 @@ finish_id_expression (tree id_expression,
        {
          if (DECL_P (decl) && DECL_NONLOCAL (decl)
              && DECL_CLASS_SCOPE_P (decl)
-             && DECL_CONTEXT (decl) != current_class_type)
+             && context_for_name_lookup (decl) != current_class_type)
            {
              tree path;