digitalmars.D.bugs - [Issue 23501] New: recursive assertion produces strange error
- d-bugmail puremagic.com (29/29) Nov 21 2022 https://issues.dlang.org/show_bug.cgi?id=23501
https://issues.dlang.org/show_bug.cgi?id=23501 Issue ID: 23501 Summary: recursive assertion produces strange error Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: elpenguino+D gmail.com 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. --
Nov 21 2022