Fix to synchronized function storage class when getting the classinfo via dotExp.

This commit is contained in:
Christian Kamm
2009-03-25 08:13:01 +01:00
parent c189b011b5
commit 31b46683e8

View File

@@ -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
{