mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-16 13:01:21 +08:00
* pt.c (fn_type_unification): Ignore 'this' parm from conversion ops.
From-SVN: r26050
This commit is contained in:
parent
4c692e1975
commit
edef8288ec
@ -1,3 +1,7 @@
|
||||
1999-03-28 Jason Merrill <jason@yorick.cygnus.com>
|
||||
|
||||
* pt.c (fn_type_unification): Ignore 'this' parm from conversion ops.
|
||||
|
||||
1999-03-27 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
* cp-tree.h (add_friend): Declare.
|
||||
|
@ -7317,10 +7317,11 @@ fn_type_unification (fn, explicit_targs, targs, args, return_type,
|
||||
if (DECL_CONV_FN_P (fn))
|
||||
{
|
||||
/* This is a template conversion operator. Use the return types
|
||||
as well as the argument types. */
|
||||
as well as the argument types. We use it instead of 'this', since
|
||||
we could be comparing conversions from different classes. */
|
||||
parms = scratch_tree_cons (NULL_TREE, TREE_TYPE (fntype),
|
||||
parms);
|
||||
args = scratch_tree_cons (NULL_TREE, return_type, args);
|
||||
TREE_CHAIN (parms));
|
||||
args = scratch_tree_cons (NULL_TREE, return_type, TREE_CHAIN (args));
|
||||
}
|
||||
|
||||
/* We allow incomplete unification without an error message here
|
||||
|
Loading…
x
Reference in New Issue
Block a user