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)
committerdodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Mar 2010 09:20:58 +0000 (09:20 +0000)
commit39131e1cc345310cefc7320b07fb706188589240
tree083889b7e50727048b12a8abcf96790a35275305
parent003bf8d3ac04c070da84ad2a375b145410533d3a
Fix for PR c++/43327

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
gcc/testsuite/g++.dg/other/crash-10.C [new file with mode: 0644]
gcc/testsuite/g++.dg/other/crash-11.C [new file with mode: 0644]