diff --git a/Source/CParse/templ.c b/Source/CParse/templ.c index 503f725cb..b14cd1e4d 100644 --- a/Source/CParse/templ.c +++ b/Source/CParse/templ.c @@ -766,6 +766,7 @@ static Node *template_locate(String *name, Parm *tparms, Symtab *tscope) { for (i = 1; i < posslen; i++) { String *templcsymname = Getattr(Getitem(possiblepartials, i), "templcsymname"); Node *ignored_node = Swig_symbol_clookup_local(templcsymname, primary_scope); + assert(ignored_node); Swig_warning(WARN_PARSE_TEMPLATE_AMBIG, Getfile(ignored_node), Getline(ignored_node), " instantiation '%s' ignored.\n", SwigType_namestr(Getattr(ignored_node, "name"))); } }