aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/semantics.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2003-09-08 18:46:20 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2003-09-08 18:46:20 +0000
commitfa531100f1956d00ec74cc4df7d6d5cbc510058e (patch)
tree7e7a10f5801dccde975ad231bcedfa37dddce232 /gcc/cp/semantics.c
parentc4bb110a19d441dbaef58fe4215bda6537e5c8a4 (diff)
downloadgcc-fa531100f1956d00ec74cc4df7d6d5cbc510058e.zip
gcc-fa531100f1956d00ec74cc4df7d6d5cbc510058e.tar.gz
gcc-fa531100f1956d00ec74cc4df7d6d5cbc510058e.tar.bz2
re PR c++/11786 (operator() call on variable in other namespace not recognized)
PR c++/11786 * decl2.c (add_function): Do not complain about seeing the same non-function twice. * semantics.c (perform_koenig_lookup): Improve documentation. PR c++/11786 * g++.dg/lookup/koenig2.C: New test. From-SVN: r71213
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r--gcc/cp/semantics.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c
index 8b765ef..e7392c0 100644
--- a/gcc/cp/semantics.c
+++ b/gcc/cp/semantics.c
@@ -1534,8 +1534,9 @@ finish_stmt_expr (tree rtl_expr, bool has_no_scope)
}
/* Perform Koenig lookup. FN is the postfix-expression representing
- the call; ARGS are the arguments to the call. Returns the
- functions to be considered by overload resolution. */
+ the function (or functions) to call; ARGS are the arguments to the
+ call. Returns the functions to be considered by overload
+ resolution. */
tree
perform_koenig_lookup (tree fn, tree args)