OSDN Git Service

Fix PR c++/41863
authordodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 30 Oct 2009 07:08:36 +0000 (07:08 +0000)
committerdodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 30 Oct 2009 07:08:36 +0000 (07:08 +0000)
commit0f0b95da7ef5c6946585f55b0412d40475a603c9
treeb69cfae84705540c6c89b59c7c2d7c1cbe4e185d
parent91084be03ab2a4fe18a388e9f7f015699b3a6ef5
Fix PR c++/41863

gcc/cp/ChangeLog:

PR c++/41863
* pt.c (iterative_hash_template_arg): articifial parms
don't have DECL_PARM_INDEX set. Do not hash it.

gcc/testsuite/ChangeLog:

PR c++/41863
* g++.dg/template/sizeof12.C: New test.

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