]> gcc.gnu.org Git - gcc.git/commitdiff
pt.c (type_unification_real): Just accept function parms that don't use any template...
authorJason Merrill <jason@yorick.cygnus.com>
Tue, 27 Jan 1998 02:30:38 +0000 (02:30 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 27 Jan 1998 02:30:38 +0000 (21:30 -0500)
* pt.c (type_unification_real): Just accept function parms that
don't use any template parms.

From-SVN: r17500

gcc/cp/ChangeLog
gcc/cp/pt.c

index 09d9f46af71cf9e1545c3fa7bcad457faa39b851..4230426b2da21a03417b053e803cf2f7d7ae6de4 100644 (file)
@@ -1,3 +1,8 @@
+Tue Jan 27 01:44:02 1998  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * pt.c (type_unification_real): Just accept function parms that
+       don't use any template parms.
+
 Sun Jan 25 03:30:00 1998  Jason Merrill  <jason@yorick.cygnus.com>
 
        * decl.c (cp_finish_decl): When bailing on a comdat variable, also
index 7f32c4f7903541e8ff7ef697dc8376253c22d016..753af6bae1620cfbd1062cd146b4d04487a60405 100644 (file)
@@ -4676,16 +4676,11 @@ type_unification_real (tparms, targs, parms, args, nsubsts, subr,
              if (comptypes (parm, type, 1))
                continue;
            }
-         else if (arg)
-           {
-             if (can_convert_arg (parm, type, arg))
-               continue;
-           }
          else
-           {
-             if (can_convert (parm, type))
-               continue;
-           }
+           /* It might work; we shouldn't check now, because we might
+              get into infinite recursion.  Overload resolution will
+              handle it.  */
+           continue;
 
          return 1;
        }
This page took 0.084335 seconds and 5 git commands to generate.