diff options
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r-- | gcc/cp/semantics.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index 253d31a..8e682c5 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -2210,6 +2210,7 @@ perform_koenig_lookup (cp_expr fn, vec<tree, va_gc> *args, tree functions = NULL_TREE; tree tmpl_args = NULL_TREE; bool template_id = false; + location_t loc = fn.get_location (); if (TREE_CODE (fn) == TEMPLATE_ID_EXPR) { @@ -2245,7 +2246,7 @@ perform_koenig_lookup (cp_expr fn, vec<tree, va_gc> *args, { /* The unqualified name could not be resolved. */ if (complain) - fn = unqualified_fn_lookup_error (identifier); + fn = unqualified_fn_lookup_error (cp_expr (identifier, loc)); else fn = identifier; } |