From: Robert Pengelly Date: Tue, 17 Nov 2026 13:17:24 +0000 (+0000) Subject: Fix regression in parenthesized structure array member access X-Git-Url: https://git.candlhat.org/?a=commitdiff_plain;ds=inline;p=scc.git Fix regression in parenthesized structure array member access --- diff --git a/amd64.c b/amd64.c index 40a6152..60071a9 100644 --- a/amd64.c +++ b/amd64.c @@ -14976,7 +14976,9 @@ static void emit_apply_postfix_member_access_to_reg_now (const char *reg) { emit_parse_postfix_subscript_scaled_address_to_reg_now (reg, subscript_elem_size); } - postfix_member_seen = 1; + if (tok.kind != TOK_RPAREN) { + postfix_member_seen = 1; + } if (tok.kind == TOK_ARROW && subscript_elem_size <= (DATA_PTR & 0x1f)) { diff --git a/i386.c b/i386.c index 94c4f94..b3ba4ba 100644 --- a/i386.c +++ b/i386.c @@ -13874,7 +13874,9 @@ static void emit_apply_postfix_member_access_to_reg_now (const char *reg) { subscript_count = emit_parse_postfix_subscript_scaled_address_to_reg_now (reg, subscript_elem_size); } - postfix_member_seen = 1; + if (tok.kind != TOK_RPAREN) { + postfix_member_seen = 1; + } if (tok.kind == TOK_ARROW && subscript_elem_size <= (DATA_PTR & 0x1f)) {