Commit ac07b0fc authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Resolve the class-or-namespace specifiers when creating bindings for classes.

parent 139087ee
......@@ -767,7 +767,17 @@ bool CreateBindings::visit(Namespace *ns)
bool CreateBindings::visit(Class *klass)
{
ClassOrNamespace *previous = enterEntity(klass);
ClassOrNamespace *previous = _currentClassOrNamespace;
ClassOrNamespace *binding = 0;
if (klass->name() && klass->name()->isQualifiedNameId())
binding = _currentClassOrNamespace->lookupClassOrNamespace(klass->name());
if (! binding)
binding = _currentClassOrNamespace->findOrCreate(klass->name());
_currentClassOrNamespace = binding;
_currentClassOrNamespace->addSymbol(klass);
for (unsigned i = 0; i < klass->baseClassCount(); ++i)
process(klass->baseClassAt(i));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment