From bf41d022ce9736a92097f416ab96fca7ab4594ca Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sun, 23 Aug 2026 14:05:26 +0200 Subject: Reject 0-sized variables --- boot/parser.yy | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'boot/parser.yy') 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 { -- cgit v1.2.3