aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r--gcc/cp/parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index 1fe6246..190b8d9 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -18589,7 +18589,8 @@ cp_parser_class_head (cp_parser* parser,
&& CLASS_TYPE_P (scope)
&& CLASSTYPE_TEMPLATE_INFO (scope)
&& PRIMARY_TEMPLATE_P (CLASSTYPE_TI_TEMPLATE (scope))
- && !CLASSTYPE_TEMPLATE_SPECIALIZATION (scope))
+ && (!CLASSTYPE_TEMPLATE_SPECIALIZATION (scope)
+ || uses_template_parms (CLASSTYPE_TI_ARGS (scope))))
++num_templates;
}
}