mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
Look up the function symbol when resolving overloaded functions.
This fixes the bogus undefined symbol errors when resolving unambigous overloaded functions.
This commit is contained in:
parent
43702580f5
commit
338bb9bba0
1 changed files with 6 additions and 2 deletions
|
@ -351,8 +351,12 @@ find_function (expr_t *fexpr, expr_t *params)
|
|||
func_compare);
|
||||
if (dummy_p) {
|
||||
f = (overloaded_function_t *) *(void **) dummy_p;
|
||||
if (f->overloaded)
|
||||
fexpr->e.symbol->name = f->full_name;
|
||||
if (f->overloaded) {
|
||||
fexpr->e.symbol = symtab_lookup (current_symtab, f->full_name);
|
||||
if (!fexpr->e.symbol)
|
||||
internal_error (fexpr, "overloaded function %s not found",
|
||||
best->full_name);
|
||||
}
|
||||
free (funcs);
|
||||
return fexpr;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue