]> gcc.gnu.org Git - gcc.git/commitdiff
re PR c++/56377 (<missing> template args in substitution-failure diagnostics)
authorJason Merrill <jason@redhat.com>
Fri, 22 Feb 2013 22:24:27 +0000 (17:24 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 22 Feb 2013 22:24:27 +0000 (17:24 -0500)
PR c++/56377
* pt.c (fn_type_unification): Use explicit args in template
instantiation context.

From-SVN: r196230

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

index 6b3aa17edc2a42d3e81b657e81d9155df1ab7ac0..ed5d3995b357d2b6309f7b8dde8faf5c2fcad4b8 100644 (file)
@@ -1,5 +1,9 @@
 2013-02-22  Jason Merrill  <jason@redhat.com>
 
+       PR c++/56377
+       * pt.c (fn_type_unification): Use explicit args in template
+       instantiation context.
+
        PR c++/56359
        * call.c (can_convert_arg): Discard access checks.
 
index 440df1ea2317a4803d1fe5a4e6ce63e9ca07e350..a39d114818f6012f8e77d0e2cad0304b740e62bf 100644 (file)
@@ -15008,8 +15008,10 @@ fn_type_unification (tree fn,
 
       processing_template_decl += incomplete;
       input_location = DECL_SOURCE_LOCATION (fn);
+      TREE_VALUE (tinst) = explicit_targs;
       fntype = tsubst (TREE_TYPE (fn), explicit_targs,
                       complain | tf_partial, NULL_TREE);
+      TREE_VALUE (tinst) = targs;
       input_location = loc;
       processing_template_decl -= incomplete;
 
This page took 0.105082 seconds and 5 git commands to generate.