diff options
author | Mark Mitchell <mmitchel@gcc.gnu.org> | 1998-03-24 16:13:12 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1998-03-24 16:13:12 +0000 |
commit | 9db4940cd66f74b2016e64894733d63b40388f2f (patch) | |
tree | 0472f2978ce52a7c3208dc3a892409e530928a27 | |
parent | aa09da44c7f7974aa79e2e409b86be215fef95b7 (diff) | |
download | gcc-9db4940cd66f74b2016e64894733d63b40388f2f.zip gcc-9db4940cd66f74b2016e64894733d63b40388f2f.tar.gz gcc-9db4940cd66f74b2016e64894733d63b40388f2f.tar.bz2 |
tree.c (mapcar): When dealing with a DECL, use it's constant value, if any.
�
* 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
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/explicit68.C | 22 |
1 files changed, 22 insertions, 0 deletions
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 <bool B> +struct S +{ + static void g(); +}; + +template <bool B> +void g(); + +template<unsigned Length> +void f() +{ + const bool b = true; + g<b>(); + const bool b1 = (Length == 2); + S<b1>::g(); +} + +void h() +{ + f<3>(); +} |