diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-05-12 10:27:14 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-05-12 10:27:14 +0100 |
| commit | 45eecc0905fa72b17a74b2a258598eae1da10597 (patch) | |
| tree | a558b74855d8b13b8889448383b962315995cd22 /src/parser.c | |
| parent | 87f1a62ca4280105eb845e5bae3acd8b8a0a0810 (diff) | |
Reimplement #ordered again
Diffstat (limited to 'src/parser.c')
| -rw-r--r-- | src/parser.c | 10 |
1 files changed, 5 insertions, 5 deletions
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)); |