summaryrefslogtreecommitdiff
path: root/gcc/cp/semantics.c
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2003-12-04 05:02:20 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2003-12-04 05:02:20 +0000
commitd6309987432ac9acc4d517b0f74ff4a07bf0be11 (patch)
treecc4df039704a0dd82f749e5f8e24f6dc40074c24 /gcc/cp/semantics.c
parent347121147b207de696152992273d844f829ff23d (diff)
downloadgcc-d6309987432ac9acc4d517b0f74ff4a07bf0be11.tar.gz
PR c++/13179
* semantics.c (finish_handler_parms): Do not call eh_type_info for types used in templates. PR c++/13179 * g++.dg/template/eh1.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74269 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r--gcc/cp/semantics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c
index cb259726ee8..a5e93a23567 100644
--- a/gcc/cp/semantics.c
+++ b/gcc/cp/semantics.c
@@ -960,7 +960,7 @@ finish_handler_parms (tree decl, tree handler)
type = expand_start_catch_block (decl);
HANDLER_TYPE (handler) = type;
- if (type)
+ if (!processing_template_decl && type)
mark_used (eh_type_info (type));
}