From 9f666494ebb2572e3a18ba5dd89bace629a8ef5a Mon Sep 17 00:00:00 2001 From: Mamy Ratsimbazafy Date: Tue, 9 Jun 2026 12:59:59 +0200 Subject: [PATCH] Fix #25883 tuple sighash collision --- compiler/sighashes.nim | 1 + .../t25883_tuple_sighash_collision.nim | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 tests/ccgbugs2/t25883_tuple_sighash_collision.nim diff --git a/compiler/sighashes.nim b/compiler/sighashes.nim index 3b688920e4..c4ee24b785 100644 --- a/compiler/sighashes.nim +++ b/compiler/sighashes.nim @@ -211,6 +211,7 @@ proc hashType(c: var MD5Context, t: PType; flags: set[ConsiderFlag]; conf: Confi c.hashTree(t.n, {}, conf) of tyTuple: c &= char(t.kind) + c &= t.len if t.n != nil and CoType notin flags: for i in 0..