re PR c++/40274 (Revision 145566 caused ICE in tsubst, at cp/pt.c:9289)

PR c++/40274
	* error.c (dump_template_parms): Pass all args to
	count_non_default_template_args.
	(count_non_default_template_args): Pull out the inner ones.

From-SVN: r149067
This commit is contained in:
Jason Merrill 2009-06-29 19:18:46 -04:00 committed by Jason Merrill
parent 8cc77ebed0
commit 2fcefcb2ad
2 changed files with 23 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-06-29 Jason Merrill <jason@redhat.com>
PR c++/40274
* g++.dg/template/debug1.C: New.
2009-06-29 Tobias Burnus <burnus@net-b.de>
PR fortran/40580

View File

@ -0,0 +1,18 @@
// PR c++/40274
// { dg-options "-g" }
template <class T> struct valuelist_types
{
struct null { };
template <T V, class next=null> struct list { };
};
template <unsigned D> void foo()
{
typename valuelist_types<unsigned>::template list<D> v;
}
void bar()
{
valuelist_types<unsigned>::list<2> v;
}