diff options
author | Jason Merrill <jason@yorick.cygnus.com> | 1998-08-17 17:13:42 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1998-08-17 13:13:42 -0400 |
commit | 8cd4c1752846cea2517c93a71c33bcc8e25a063c (patch) | |
tree | f93bdf9315c8122980ce7c7ba46bf398ebde9158 /gcc/cp/call.c | |
parent | 2e245dac404f9921584d2baf3b9b98a3b88eacce (diff) | |
download | gcc-8cd4c1752846cea2517c93a71c33bcc8e25a063c.zip gcc-8cd4c1752846cea2517c93a71c33bcc8e25a063c.tar.gz gcc-8cd4c1752846cea2517c93a71c33bcc8e25a063c.tar.bz2 |
gxxint.texi: Remove obsolete documentation of overloading code.
* gxxint.texi: Remove obsolete documentation of overloading code.
* decl.c (finish_enum): Also set TYPE_SIZE_UNIT.
* tree.c (lvalue_type): Fix for arrays.
* typeck.c (build_unary_op): Use lvalue_type.
* call.c (add_function_candidate): Likewise.
* cvt.c (convert_to_reference): Likewise.
* decl2.c (lang_decode_option): Ignore -traditional.
From-SVN: r21795
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r-- | gcc/cp/call.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c index e65898e..5234a4b 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -1144,15 +1144,9 @@ add_function_candidate (candidates, fn, arglist, flags) for (i = 0; i < len; ++i) { tree arg = TREE_VALUE (argnode); - tree argtype = TREE_TYPE (arg); + tree argtype = lvalue_type (arg); tree t; - /* An overloaded function does not have an argument type */ - if (TREE_CODE (arg) == OVERLOAD) - argtype = unknown_type_node; - argtype = cp_build_type_variant - (argtype, TREE_READONLY (arg), TREE_THIS_VOLATILE (arg)); - if (parmnode == void_list_node) break; else if (parmnode) |