Merged DMD commit 7be2ad3a6789fc9f6e36538b293845ffa84ec7d7:

more 64
This commit is contained in:
David Nadlinger
2011-04-22 19:09:25 +02:00
parent 2c081edfcd
commit 46d15953e2

View File

@@ -2945,7 +2945,10 @@ void TemplateValueParameter::semantic(Scope *sc)
valType = valType->semantic(loc, sc);
if (!(valType->isintegral() || valType->isfloating() || valType->isString()) &&
valType->ty != Tident)
error(loc, "arithmetic/string type expected for value-parameter, not %s", valType->toChars());
{
if (valType != Type::terror)
error(loc, "arithmetic/string type expected for value-parameter, not %s", valType->toChars());
}
if (specValue)
{ Expression *e = specValue;