diff options
author | Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> | 2001-07-26 12:48:01 +0000 |
---|---|---|
committer | Kriang Lerdsuwanakij <lerdsuwa@gcc.gnu.org> | 2001-07-26 12:48:01 +0000 |
commit | db3ef87b8a1858f77998a9e8a5275cc5755350d7 (patch) | |
tree | 0f0dee1191602d0d5c890d49e73f62752caff763 /gcc/cp/pt.c | |
parent | fa397ddafb335eb0a67b08e014605bf5f9ab7cc5 (diff) | |
download | gcc-db3ef87b8a1858f77998a9e8a5275cc5755350d7.zip gcc-db3ef87b8a1858f77998a9e8a5275cc5755350d7.tar.gz gcc-db3ef87b8a1858f77998a9e8a5275cc5755350d7.tar.bz2 |
pt.c (tsubst_template_parms): Call maybe_fold_nontype_arg and tsubst_expr for default template arguments.
2001-07-22 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
* pt.c (tsubst_template_parms): Call maybe_fold_nontype_arg and
tsubst_expr for default template arguments.
2001-07-22 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
* g++.old-deja/g++.pt/defarg14.C: New test.
From-SVN: r44396
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r-- | gcc/cp/pt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index d09ce8f..1f40089 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -5377,8 +5377,9 @@ tsubst_template_parms (parms, args, complain) TREE_VALUE (TREE_VEC_ELT (TREE_VALUE (parms), i)); TREE_VEC_ELT (new_vec, i) - = build_tree_list (tsubst (default_value, args, complain, - NULL_TREE), + = build_tree_list (maybe_fold_nontype_arg ( + tsubst_expr (default_value, args, complain, + NULL_TREE)), tsubst (parm_decl, args, complain, NULL_TREE)); } |