Bug 23501 – recursive assertion produces strange error

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-11-21T16:43:10Z
Last change time
2024-12-13T19:25:47Z
Assigned to
No Owner
Creator
elpenguino+D
Moved to GitHub: dmd#20188 →

Comments

Comment #0 by elpenguino+D — 2022-11-21T16:43:10Z
this code: ``` void main() { assert(assert(0, "hello"), "hello again"); } ``` produces an unusual and unhelpful error message at runtime: ``` function: _Dmain el:0x556a2baa7fd0 cnt=1 cs=0 rpair TYucent 0x556a2baa7f70 0x556a2baa7f10 el:0x556a2baa7f70 cnt=0 cs=255 relconst TY* 0+& _TMP0 el:0x556a2baa7f10 cnt=0 cs=255 const TYulong 11LL ``` I'm not sure which message should end up being printed, but I'm pretty sure it shouldn't be this one.
Comment #1 by robert.schadek — 2024-12-13T19:25:47Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20188 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB