diff --git a/dmd/dscope.d b/dmd/dscope.d index b8be3b19ef4..b3769593dc1 100644 --- a/dmd/dscope.d +++ b/dmd/dscope.d @@ -349,7 +349,7 @@ version (IN_LLVM) * Returns: * symbol if found, null if not */ - extern (D) Dsymbol search(const ref Loc loc, Identifier ident, Dsymbol* pscopesym, int flags = IgnoreNone) + extern (C++) Dsymbol search(const ref Loc loc, Identifier ident, Dsymbol* pscopesym, int flags = IgnoreNone) { version (LOGSEARCH) { diff --git a/dmd/scope.h b/dmd/scope.h index 1ac51212649..055c01968ac 100644 --- a/dmd/scope.h +++ b/dmd/scope.h @@ -129,4 +129,6 @@ struct Scope AliasDeclaration *aliasAsg; // if set, then aliasAsg is being assigned a new value, // do not set wasRead for it + + Dsymbol *search(const Loc &loc, Identifier *ident, Dsymbol **pscopesym, int flags = IgnoreNone); };