On Sunday, 4 May 2025 at 00:15:23 UTC, Jonathan M Davis wrote:
That sounds like an ldc bug then. With dmd, your program gives

[2, 2, 2, 2, 1, 1, 1, 1]
[2, 2, 2, 2, 1, 1, 1, 1]
core.exception.RangeError@q.d(13): Range violation
----------------
??:? onRangeError [0x29f6b6]
??:? _d_arrayboundsp [0x29f685]
??:? _Dmain [0x27c099]

Ah, you are right: https://github.com/ldc-developers/ldc/issues/3793

dmd here give the RangeError also (as does gdc).

Thanks,
Andy

Reply via email to