OSDN Git Service

Fix for PR c++/43327
authordodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Mar 2010 09:20:58 +0000 (09:20 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:14:50 +0000 (14:14 +0900)
gcc/cp/ChangeLog:
PR c++/43327
* pt.c (add_to_template_args): Support NULL ARGS;
(most_specialized_class): call coerce_template_parms on
template arguments passed to get_class_bindings. Use
add_to_template_args.
(unify): Handle VAR_DECLs.

gcc/testsuite/ChangeLog:
PR c++/43327
* g++.dg/other/crash-10.C: New test.
* g++.dg/other/crash-11.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157745 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 8a35842..588930b 100644 (file)
@@ -1,5 +1,14 @@
 2010-03-26  Dodji Seketeli  <dodji@redhat.com>
 
+       PR c++/43327
+       * pt.c (add_to_template_args): Support NULL ARGS;
+       (most_specialized_class): call coerce_template_parms on
+       template arguments passed to get_class_bindings. Use
+       add_to_template_args.
+       (unify): Handle VAR_DECLs.
+
+2010-03-26  Dodji Seketeli  <dodji@redhat.com>
+
        * cp-tree.h (get_template_parms_at_level): Change unsigned parm
        into int.
        * pt.c (get_template_parms_at_level): Adjust.
index 7a66d36..b17f0ac 100644 (file)
@@ -15982,8 +15982,6 @@ most_specialized_class (tree type, tree tmpl)
                                 /*require_all_args=*/true,
                                 /*use_default_args=*/true);
 
-      --processing_template_decl;
-
       if (partial_spec_args == error_mark_node)
        return error_mark_node;
 
index 85d042e..9b85233 100644 (file)
@@ -1,3 +1,9 @@
+2010-03-26  Dodji Seketeli  <dodji@redhat.com>
+
+       PR c++/43327
+       * g++.dg/other/crash-10.C: New test.
+       * g++.dg/other/crash-11.C: New test.
+
 2010-03-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
 
        PR libfortran/43517