diff --git a/compiler/src/dmd/typesem.d b/compiler/src/dmd/typesem.d index 26336b7631..dd9a1e8eb3 100644 --- a/compiler/src/dmd/typesem.d +++ b/compiler/src/dmd/typesem.d @@ -630,7 +630,7 @@ extern (D) MATCH callMatch(TypeFunction tf, Type tthis, ArgumentList argumentLis if (auto ad = isAggregate(p.type)) if (ad.hasImplicitConstructor()) { - static int recursionCount; + __gshared static int recursionCount; recursionCount++; scope(exit) recursionCount--;