From 079e973c134654e9527a4ec59d62ff6cadbe8f84 Mon Sep 17 00:00:00 2001 From: Robert Pengelly Date: Tue, 17 Nov 2026 13:17:24 +0000 Subject: [PATCH] Fix regression in parenthesized structure array member access --- amd64.c | 4 +++- i386.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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)) { -- 2.34.1