Index: source/Symbol/ClangASTImporter.cpp =================================================================== --- source/Symbol/ClangASTImporter.cpp +++ source/Symbol/ClangASTImporter.cpp @@ -1052,6 +1052,15 @@ to_tag_decl->setHasExternalLexicalStorage(); to_tag_decl->getPrimaryContext()->setMustBuildLookupTable(); + if (!to_tag_decl->getPrimaryContext()->isTransparentContext()) + if (to_tag_decl->isCompleteDefinition()) + to_tag_decl->buildLookup(); + + DeclContext *redecl_primary_ctx = + to_tag_decl->getRedeclContext()->getPrimaryContext(); + redecl_primary_ctx->setMustBuildLookupTable(); + if (to_tag_decl->isCompleteDefinition()) + redecl_primary_ctx->buildLookup(); if (log) log->Printf(