pt.c (unify): Handle `void' template parameters in specializations.

* pt.c (unify): Handle `void' template parameters in
	specializations.

From-SVN: r16772
This commit is contained in:
Mark Mitchell 1997-11-27 03:49:23 +00:00 committed by Jason Merrill
parent 5f1a18f649
commit 5ad5a5263d
2 changed files with 6 additions and 0 deletions

View 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 01:11:24 1997 Jason Merrill <jason@yorick.cygnus.com>
* rtti.c (build_dynamic_cast): Handle template case here.

View 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;