summaryrefslogtreecommitdiff
path: root/gcc/cp/pt.c
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>1999-10-08 05:42:36 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>1999-10-08 05:42:36 +0000
commit24bd1b1aa1694c24bce083a0fddbd8091a518a19 (patch)
tree08c1b51b1a0692c3541d1720ed3f6ac569f459ce /gcc/cp/pt.c
parent3bc71b4a1863049001959c6afee01b939cfb485b (diff)
downloadgcc-24bd1b1aa1694c24bce083a0fddbd8091a518a19.tar.gz
* pt.c (tsubst_expr): Set DECL_TEMPLATE_INSTANTIATED for a catch
paramter. * semantics.c (expand_stmt): Don't pretend to have asmspecs for local statics if we don't really have them. * ir.texi: Improve documentation for STMT_EXPR. Describe CLEANUP_POINT_EXPR. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29863 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r--gcc/cp/pt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index b4b9ba9b530..027e04a4df7 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -7424,6 +7424,10 @@ tsubst_expr (t, args, complain, in_decl)
{
decl = DECL_STMT_DECL (HANDLER_PARMS (t));
decl = tsubst (decl, args, complain, in_decl);
+ /* Prevent instantiate_decl from trying to instantiate
+ this variable. We've already done all that needs to be
+ done. */
+ DECL_TEMPLATE_INSTANTIATED (decl) = 1;
}
else
decl = NULL_TREE;