Bug 23705 – dmd: src/dmd/backend/cgcod.d:734: Assertion `sz >= 0' failed.

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2023-02-13T03:42:31Z
Last change time
2023-02-16T02:23:40Z
Keywords
pull
Assigned to
No Owner
Creator
kdevel

Comments

Comment #0 by kdevel — 2023-02-13T03:42:31Z
using a non-release build: $ ./dmd --version DMD64 D Compiler v2.102.0-98-g67b6ee0-dirty Copyright (C) 1999-2023 by The D Language Foundation, All Rights Reserved written by Walter Bright $ cat test.d void main () { ubyte [0x7fff_fffe] x; } $ ./dmd test.d dmd: src/dmd/backend/cgcod.d:734: Assertion `sz >= 0' failed. Abgebrochen The values of some variables after casting to long are: base = -2147483646 alig = 8 bias = 8 sz = -2147483642 maybe related to issue 23679
Comment #1 by dlang-bot — 2023-02-13T10:36:59Z
@RazvanN7 created dlang/dmd pull request #14876 "Fix Issue 23705 - dmd: src/dmd/backend/cgcod.d:734: Assertion sz >= 0 failed" fixing this issue: - Fix Issue 23705 - dmd: src/dmd/backend/cgcod.d:734: Assertion sz >= 0 failed https://github.com/dlang/dmd/pull/14876
Comment #2 by dlang-bot — 2023-02-14T12:42:49Z
dlang/dmd pull request #14876 "Fix Issue 23705 - dmd: src/dmd/backend/cgcod.d:734: Assertion sz >= 0 failed" was merged into stable: - b44c2fafbf497ec14bfe399679ec004d5f0f131e by RazvanN7: Fix Issue 23705 - dmd: src/dmd/backend/cgcod.d:734: Assertion sz >= 0 failed https://github.com/dlang/dmd/pull/14876
Comment #3 by dlang-bot — 2023-02-16T02:23:40Z
dlang/dmd pull request #14887 "merge stable" was merged into master: - e88ae0da4ddf891283d8eabc2d463ff63d06da02 by Razvan Nitu: Fix Issue 23705 - dmd: src/dmd/backend/cgcod.d:734: Assertion sz >= 0 failed (#14876) https://github.com/dlang/dmd/pull/14887