OSDN Git Service

Fix PR c++/42915
authordodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Feb 2010 08:28:24 +0000 (08:28 +0000)
committerdodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Feb 2010 08:28:24 +0000 (08:28 +0000)
commitb233ee70e19a5efa32bca3e7bc56b93bcce349c5
tree8b5b4721fdc94bb4b1c75d09141fc2ef0055594c
parent3446c28b852b05b356bb0ef7bd323f5d5a82e805
Fix PR c++/42915

gcc/cp/ChangeLog:
PR c++/42915
* typeck.c (get_template_parms_of_dependent_type): Try getting
the template parameters fromt the type itself first.

gcc/testsuite/ChangeLog:
PR c++/42915
g++.dg/other/crash-9.C: New test.

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