Fix PR c++/43953
commit22471cfe8db5f413e4abd666b32a2b2cbda341a8
authordodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 4 May 2010 09:49:45 +0000 (4 09:49 +0000)
committerdodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 4 May 2010 09:49:45 +0000 (4 09:49 +0000)
tree172380cb649bc9cd1a9292ccd5322655d0bfeb35
parent7d3f46726022d414cb0d64b71daf3ce048bc0fcb
Fix PR c++/43953

gcc/cp/ChangeLog:
PR c++/43953
* pt.c (most_specialized_class): Pretend we are processing
a template decl during the call to coerce_template_parms.

gcc/testsuite/ChangeLog:
PR c++/43953
* g++.dg/other/crash-12.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159019 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/crash-12.C [new file with mode: 0644]