From 9db4940cd66f74b2016e64894733d63b40388f2f Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Tue, 24 Mar 1998 16:13:12 +0000 Subject: tree.c (mapcar): When dealing with a DECL, use it's constant value, if any. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit � * tree.c (mapcar): When dealing with a DECL, use it's constant value, if any. * pt.c (lookup_template_class): Don't mangle the names of template classes whose arguments are unknown. * pt.c (tsubst_expr): Handle GOTO_STMT correctly. From-SVN: r18805 --- gcc/testsuite/g++.old-deja/g++.pt/explicit68.C | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.pt/explicit68.C (limited to 'gcc') diff --git a/gcc/testsuite/g++.old-deja/g++.pt/explicit68.C b/gcc/testsuite/g++.old-deja/g++.pt/explicit68.C new file mode 100644 index 0000000..0f7d08f --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/explicit68.C @@ -0,0 +1,22 @@ +template +struct S +{ + static void g(); +}; + +template +void g(); + +template +void f() +{ + const bool b = true; + g(); + const bool b1 = (Length == 2); + S::g(); +} + +void h() +{ + f<3>(); +} -- cgit v1.1