From 11563b44d184a8a1c2891fad3b8c724a5983ef13 Mon Sep 17 00:00:00 2001 From: jason Date: Mon, 29 Jun 2009 23:18:46 +0000 Subject: [PATCH] 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149067 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/template/debug1.C | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 gcc/testsuite/g++.dg/template/debug1.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3adb59d..03e3a04 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2009-06-29 Jason Merrill + + PR c++/40274 + * g++.dg/template/debug1.C: New. + 2009-06-29 Tobias Burnus PR fortran/40580 diff --git a/gcc/testsuite/g++.dg/template/debug1.C b/gcc/testsuite/g++.dg/template/debug1.C new file mode 100644 index 0000000..a2c1577 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/debug1.C @@ -0,0 +1,18 @@ +// PR c++/40274 +// { dg-options "-g" } + +template struct valuelist_types +{ + struct null { }; + template struct list { }; +}; + +template void foo() +{ + typename valuelist_types::template list v; +} + +void bar() +{ + valuelist_types::list<2> v; +} -- 2.7.4