mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
When a global const has invalid attributes, handling is incorrect, leading to a crash #2785.
This commit is contained in:
@@ -1007,7 +1007,7 @@ Decl *parse_const_declaration(ParseContext *c, bool is_global, bool is_extern)
|
||||
// Differentiate between global and local attributes, global have visibility
|
||||
if (is_global)
|
||||
{
|
||||
if (!parse_attributes_for_global(c, decl)) return false;
|
||||
if (!parse_attributes_for_global(c, decl)) return poisoned_decl;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user