Trivial fix for bug #265

This commit is contained in:
Christian Kamm
2009-04-23 20:28:29 +02:00
parent d21cdb1df0
commit a38d34dead
+4 -1
View File
@@ -5800,7 +5800,10 @@ Expression *DotTemplateInstanceExp::semantic(Scope *sc)
id = ti->name; id = ti->name;
s2 = s->search(loc, id, 0); s2 = s->search(loc, id, 0);
if (!s2) if (!s2)
{ error("template identifier %s is not a member of %s %s", id->toChars(), s->kind(), s->ident->toChars()); { if (s->ident)
error("template identifier %s is not a member of %s %s", id->toChars(), s->kind(), s->ident->toChars());
else
error("template identifier %s is not a member of %s", id->toChars(), s->kind());
goto Lerr; goto Lerr;
} }
s = s2; s = s2;