r157730 - in /trunk/gcc: cp/ChangeLog cp/cp-tre...
dodji@gcc.gnu.org
dodji@gcc.gnu.org
Thu Mar 25 22:08:00 GMT 2010
Author: dodji
Date: Thu Mar 25 22:08:33 2010
New Revision: 157730
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157730
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/template/typedef30.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/pt.c
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list