OSDN Git Service

Fix candidate for PR c++/43206
authordodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 25 Mar 2010 22:08:33 +0000 (22:08 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 00:35:36 +0000 (09:35 +0900)
commitd418808993294334b1d8cbd802a08e572d4a25f8
tree4afe01d06afb2bd1c3919312a6eee87d1822df60
parent29f7cfdd5edb81c5781242692be4147d294e4563
Fix candidate for PR c++/43206

gcc/cp/ChangeLog:
PR c++/43206
* cp-tree.h (get_template_parms_at_level): Declare ...
* pt.c (get_template_parms_at_level): ... new function.
* typeck.c (get_template_parms_of_dependent_type): If a template
type parm's DECL_CONTEXT isn't yet set, get its siblings from
current_template_parms. Use get_template_parms_at_level. Remove
useless test.
(incompatible_dependent_types_p): If we get empty parms from just one
of the template type parms we are comparing then the template parms are
incompatible.

gcc/testsuite/ChangeLog:
PR c++/43206
* g++.dg/template/typedef30.C: New test case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157730 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/pt.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog