[Issue 23832] New: dmd regression 2.103.0 silent error cannot call decode at runtime
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Apr 6 15:48:21 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=23832
Issue ID: 23832
Summary: dmd regression 2.103.0 silent error cannot call decode
at runtime
Product: D
Version: D2
Hardware: All
OS: Windows
Status: NEW
Severity: regression
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: alphaglosined at gmail.com
The second static assert below will not trigger, but the first will.
dmd -betterC test.d
```d
void main() {
import std.utf : decode;
size_t i;
string str = "test";
// static assert(0);
dchar c = decode(str, i);
static assert(0);
}
```
No output is given without the first static assert.
--
More information about the Digitalmars-d-bugs
mailing list