aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/except.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/except.c')
-rw-r--r--gcc/cp/except.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/except.c b/gcc/cp/except.c
index 3a6b9dd..4f8ad7b 100644
--- a/gcc/cp/except.c
+++ b/gcc/cp/except.c
@@ -524,6 +524,8 @@ expand_start_catch_block (declspecs, declarator)
{
decl = grokdeclarator (declarator, declspecs, CATCHPARM,
1, NULL_TREE);
+ if (processing_template_decl)
+ decl = push_template_decl (decl);
pushdecl (decl);
add_decl_stmt (decl);
}