From 45eecc0905fa72b17a74b2a258598eae1da10597 Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Fri, 12 May 2017 10:27:14 +0100 Subject: Reimplement #ordered again --- src/parser.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/parser.c') diff --git a/src/parser.c b/src/parser.c index fb8d5d91b..403fcdda2 100644 --- a/src/parser.c +++ b/src/parser.c @@ -2746,11 +2746,11 @@ AstNode *parse_type_or_ident(AstFile *f) { syntax_error(tag, "Duplicate struct tag `#%.*s`", LIT(tag.string)); } is_packed = true; - // } else if (str_eq(tag.string, str_lit("ordered"))) { - // if (is_ordered) { - // syntax_error(tag, "Duplicate struct tag `#%.*s`", LIT(tag.string)); - // } - // is_ordered = true; + } else if (str_eq(tag.string, str_lit("ordered"))) { + if (is_ordered) { + syntax_error(tag, "Duplicate struct tag `#%.*s`", LIT(tag.string)); + } + is_ordered = true; } else if (str_eq(tag.string, str_lit("align"))) { if (align) { syntax_error(tag, "Duplicate struct tag `#%.*s`", LIT(tag.string)); -- cgit v1.2.3