From 31b46683e8ea39be07552479e3246fe381bcc2fe Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Wed, 25 Mar 2009 08:13:01 +0100 Subject: [PATCH] Fix to synchronized function storage class when getting the classinfo via dotExp. --- dmd/func.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dmd/func.c b/dmd/func.c index 53b6fba1..75d668c5 100644 --- a/dmd/func.c +++ b/dmd/func.c @@ -1255,8 +1255,7 @@ void FuncDeclaration::semantic3(Scope *sc) if (isStatic()) { // static member functions synchronize on classinfo - // (the expression passed doesn't matter) - sync = cd->type->dotExp(sc2, new DollarExp(loc), Id::classinfo); + sync = cd->type->dotExp(sc2, new TypeExp(loc, cd->type), Id::classinfo); } else {