aboutsummaryrefslogtreecommitdiff
path: root/src/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse.c')
-rw-r--r--src/parse.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/parse.c b/src/parse.c
index 29432c31..7ba557fb 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -2032,6 +2032,9 @@ PARSER(parse_enum_def) {
REVERSE_LIST(tags);
+ if (tags == NULL)
+ parser_err(ctx, start, pos, "This enum does not have any tags!");
+
ast_t *namespace = NULL;
const char *ns_pos = pos;
whitespace(&ns_pos);