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 00:36:41 +0000 (09:36 +0900)
commit96c26582ef2ec1e6db8c552f6b1aefdb17a5039a
tree4cc3866f9ebfa8adca92d8862109302fc616c4a5
parent8f696f808f05eb7605706fbe29d3776f1476b7c7
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