Removed PAGESIZE part of Tango patch, it works for me when the check is removed.

Updated Tango patch to latest Tango revision.
This commit is contained in:
Tomas Lindquist Olsen
2008-12-02 02:45:31 +01:00
parent 879bed7df6
commit 6997919627
3 changed files with 79 additions and 108 deletions
-8
View File
@@ -3465,14 +3465,6 @@ Type *TypeFunction::semantic(Loc loc, Scope *sc)
arg->defaultArg = arg->defaultArg->semantic(sc);
arg->defaultArg = resolveProperties(sc, arg->defaultArg);
arg->defaultArg = arg->defaultArg->implicitCastTo(sc, arg->type);
// make sure default arguments only use variables with lower protection
// this check only catches the common case that the default arg Exp is a VarExp
if(arg->defaultArg->op == TOKvar)
{ VarExp *ve = (VarExp *)arg->defaultArg;
if(ve->var->protection != PROTundefined && ve->var->protection < sc->protection)
error(loc, "default argument %s has stronger protection than function %s", ve->var->toChars(), toChars());
}
}
/* If arg turns out to be a tuple, the number of parameters may