Mercurial > projects > ldc
comparison dmd/template.c @ 1640:9bf06e02070b
Merge DMD 1.057.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Mon, 08 Mar 2010 21:39:20 +0100 |
parents | 44b145be2ef5 |
children |
comparison
equal
deleted
inserted
replaced
1639:41145d30acb8 | 1640:9bf06e02070b |
---|---|
3699 int i; | 3699 int i; |
3700 | 3700 |
3701 id = name; | 3701 id = name; |
3702 s = sc->search(loc, id, &scopesym); | 3702 s = sc->search(loc, id, &scopesym); |
3703 if (!s) | 3703 if (!s) |
3704 { error("template '%s' is not defined", id->toChars()); | 3704 { |
3705 s = sc->search_correct(id); | |
3706 if (s) | |
3707 error("template '%s' is not defined, did you mean %s?", id->toChars(), s->toChars()); | |
3708 else | |
3709 error("template '%s' is not defined", id->toChars()); | |
3705 return NULL; | 3710 return NULL; |
3706 } | 3711 } |
3707 #if LOG | 3712 #if LOG |
3708 printf("It's an instance of '%s' kind '%s'\n", s->toChars(), s->kind()); | 3713 printf("It's an instance of '%s' kind '%s'\n", s->toChars(), s->kind()); |
3709 if (s->parent) | 3714 if (s->parent) |