[Issue 23501] New: recursive assertion produces strange error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Nov 21 16:43:10 UTC 2022
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 at puremagic.com
Reporter: elpenguino+D at 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.
--
More information about the Digitalmars-d-bugs
mailing list