This commit actually accept constexprs for enums

This commit is contained in:
Nicolas Sauzede 2022-04-05 22:33:38 +02:00 committed by GitHub
parent 90d1f7f199
commit 16305b2b0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -747,7 +747,7 @@ static bool consume_end(Token **rest, Token *tok) {
// enum-specifier = ident? "{" enum-list? "}"
// | ident ("{" enum-list? "}")?
//
// enum-list = ident ("=" num)? ("," ident ("=" num)?)* ","?
// enum-list = ident ("=" const-expr)? ("," ident ("=" const-expr)?)* ","?
static Type *enum_specifier(Token **rest, Token *tok) {
Type *ty = enum_type();