diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-08-23 14:05:26 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-08-23 14:05:26 +0200 |
| commit | bf41d022ce9736a92097f416ab96fca7ab4594ca (patch) | |
| tree | 74813da62ec329f826828d2cac8701a94277dc41 /boot/parser.yy | |
| parent | e4fece8e791cddec1c765c9834e1c13d0f258e16 (diff) | |
| download | elna-bf41d022ce9736a92097f416ab96fca7ab4594ca.tar.gz | |
Reject 0-sized variables
Diffstat (limited to 'boot/parser.yy')
| -rw-r--r-- | boot/parser.yy | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/boot/parser.yy b/boot/parser.yy index c45fdbc..0c32610 100644 --- a/boot/parser.yy +++ b/boot/parser.yy @@ -643,6 +643,11 @@ type_declaration: identifier_definition "=" type_expression { $$ = new boot::type_declaration(boot::make_position(@$), std::move(*$1), $3); } + | identifier_definition "=" "extern" + { + $$ = new boot::type_declaration(boot::make_position(@$), std::move(*$1), + new boot::extern_type_expression(boot::make_position(@$))); + } type_declarations: type_declaration type_declarations { |
