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:
parent
8cc77ebed0
commit
2fcefcb2ad
2 changed files with 23 additions and 0 deletions
|
@ -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
|
||||
|
|
18
gcc/testsuite/g++.dg/template/debug1.C
Normal file
18
gcc/testsuite/g++.dg/template/debug1.C
Normal 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;
|
||||
}
|
Loading…
Add table
Reference in a new issue