]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
pt.c (unify): Handle `void' template parameters in specializations.
authorMark Mitchell <mmitchell@usa.net>
Thu, 27 Nov 1997 06:39:10 +0000 (06:39 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 27 Nov 1997 06:39:10 +0000 (23:39 -0700)
        * pt.c (unify): Handle `void' template parameters in
        specializations.

From-SVN: r16775

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

index 38dec4b478f21a5adc463130611e8dea9071cb3d..b376f2782bb20d3ff9d9d88032ef1f1cfefe0a80 100644 (file)
@@ -1,3 +1,8 @@
+1997-11-26  Mark Mitchell  <mmitchell@usa.net>
+
+       * pt.c (unify): Handle `void' template parameters in
+       specializations.
+
 Wed Nov 26 20:28:49 1997  Jason Merrill  <jason@yorick.cygnus.com>
 
        * except.c (expand_throw): Call mark_used on the destructor.
index 6715bbdec0aa1e700fe748b44df56d7344df04c4..9e4512821fcdf1cba89988157323d9889932a68a 100644 (file)
@@ -3851,6 +3851,7 @@ unify (tparms, targs, ntparms, parm, arg, nsubsts, strict)
     case COMPLEX_TYPE:
     case INTEGER_TYPE:
     case BOOLEAN_TYPE:
+    case VOID_TYPE:
       if (TREE_CODE (arg) != TREE_CODE (parm))
        return 1;