aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/pt.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r--gcc/cp/pt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index 1db903d..901005b 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -6083,7 +6083,8 @@ tsubst (t, args, in_decl)
But, such constructs have already been resolved by this
point, so here CTX really should have complete type, unless
it's a partial instantiation. */
- if (!uses_template_parms (ctx)
+ if (!uses_template_parms (ctx)
+ && !TYPE_BEING_DEFINED (ctx)
&& !complete_type_or_else (ctx))
return error_mark_node;