From a38d34dead73ebd4cdefccfdf620987210114585 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Thu, 23 Apr 2009 20:28:29 +0200 Subject: [PATCH] Trivial fix for bug #265 --- dmd/expression.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dmd/expression.c b/dmd/expression.c index 1f182ea3..f56d1f86 100644 --- a/dmd/expression.c +++ b/dmd/expression.c @@ -5800,7 +5800,10 @@ Expression *DotTemplateInstanceExp::semantic(Scope *sc) id = ti->name; s2 = s->search(loc, id, 0); 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; } s = s2;