* error.c (dump_template_parms): Pass all args to
count_non_default_template_args.
(count_non_default_template_args): Pull out the inner ones.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149067
138bc75d-0d04-0410-961f-
82ee72b054a4
+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
--- /dev/null
+// 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;
+}