OSDN Git Service

Fix PR c++/42634
authordodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Jan 2010 20:06:26 +0000 (20:06 +0000)
committerdodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Jan 2010 20:06:26 +0000 (20:06 +0000)
commit2b33fa21a6c7b2517e048796f910ddfa1cab7c50
tree31116fc0e3472ae6d75eb188178fc8614fbf05db
parentf5a15437493a9a32081228576995d5e6aae0cd0c
Fix PR c++/42634

gcc/cp/ChangeLog:
PR c++/42634
* error.c (dump_template_parms): Use innermost template
arguments before calling count_non_default_template_args.
(count_non_default_template_args): We are being called with
template innermost arguments now. There is no need to ensure
that again.

gcc/testsuite/ChangeLog:
PR c++/42634
* g++.dg/template/error45.C: New test.

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