From 8236c6d4b7f75f2e20332b0b4181b259336f9a4a Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 11 Jun 2018 22:50:13 +0100 Subject: Allow for base enum type with an enum declaration --- src/check_type.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/check_type.cpp') diff --git a/src/check_type.cpp b/src/check_type.cpp index e4bd3dd2b..7b0ff8488 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -1931,6 +1931,7 @@ bool check_type_internal(CheckerContext *ctx, AstNode *e, Type **type, Type *nam bool ips = ctx->in_polymorphic_specialization; defer (ctx->in_polymorphic_specialization = ips); ctx->in_polymorphic_specialization = false; + ctx->in_enum_type = true; *type = alloc_type_enum(); set_base_type(named_type, *type); -- cgit v1.2.3