]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
call.c (joust): Compare the types of the conv ops, not the target types of the conver...
authorJason Merrill <jason@yorick.cygnus.com>
Tue, 18 May 1999 22:03:25 +0000 (22:03 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 18 May 1999 22:03:25 +0000 (18:03 -0400)
* call.c (joust): Compare the types of the conv ops, not the
target types of the conversions.

From-SVN: r26999

gcc/cp/ChangeLog
gcc/cp/call.c

index aa7c6525a5438f60c9f9f3bf793ab917461e22d8..d781f206ad48eadbdca58414a0e84fc809c6d1e5 100644 (file)
@@ -1,3 +1,8 @@
+1999-05-18  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * call.c (joust): Compare the types of the conv ops, not the
+       target types of the conversions.
+
 Tue May 18 00:21:34 1999  Zack Weinberg  <zack@rabi.phys.columbia.edu>
 
        * lang-specs.h: Define __GNUC__ and __GNUC_MINOR__ only if -no-gcc
index 496cf91e17efc233d3cf9ccb05e730a1e2fbc27e..7e7a969bcabaabfacb34a23f9ab63326874d5d1d 100644 (file)
@@ -4341,8 +4341,8 @@ joust (cand1, cand2, warn)
           != DECL_CONSTRUCTOR_P (cand2->fn))
          /* Don't warn if the two conv ops convert to the same type...  */
          || (! DECL_CONSTRUCTOR_P (cand1->fn)
-             && ! same_type_p (TREE_TYPE (cand1->second_conv),
-                               TREE_TYPE (cand2->second_conv)))))
+             && ! same_type_p (TREE_TYPE (TREE_TYPE (cand1->fn)),
+                               TREE_TYPE (TREE_TYPE (cand2->fn))))))
     {
       int comp = compare_ics (cand1->second_conv, cand2->second_conv);
       if (comp != winner)