mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Enum attributes would be overwritten by enum value attributes.
This commit is contained in:
@@ -1498,7 +1498,7 @@ static inline bool sema_analyse_enum(SemaContext *context, Decl *decl, bool *era
|
||||
Decl *enum_value = enum_values[i];
|
||||
|
||||
bool erase_val = false;
|
||||
if (!sema_analyse_attributes(context, decl, enum_value->attributes, ATTR_ENUM, &erase_val)) return decl_poison(decl);
|
||||
if (!sema_analyse_attributes(context, enum_value, enum_value->attributes, ATTR_ENUM_VALUE, &erase_val)) return decl_poison(decl);
|
||||
|
||||
if (erase_val)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user