OSDN Git Service

* pt.c (unify): Just return 0 for a TYPENAME_TYPE.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Sep 1997 02:53:42 +0000 (02:53 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Sep 1997 02:53:42 +0000 (02:53 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@15213 138bc75d-0d04-0410-961f-82ee72b054a4

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

index c9eabf9..2aedab1 100644 (file)
@@ -1,3 +1,7 @@
+Tue Sep  9 19:49:38 1997  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * pt.c (unify): Just return 0 for a TYPENAME_TYPE.
+
 Tue Sep  9 17:57:25 1997  Mark Mitchell  <mmitchell@usa.net>
 
        * error.c (dump_decl): Avoid crashing when presented with a
index 88af38b..83e5040 100644 (file)
@@ -3141,6 +3141,12 @@ unify (tparms, targs, ntparms, parm, arg, nsubsts, strict)
 
   switch (TREE_CODE (parm))
     {
+    case TYPENAME_TYPE:
+      /* In a type which contains a nested-name-specifier, template
+        argument values cannot be deduced for template parameters used
+        within the nested-name-specifier.  */
+      return 0;
+
     case TEMPLATE_TYPE_PARM:
       (*nsubsts)++;
       idx = TEMPLATE_TYPE_IDX (parm);