Comment #0 by alphaglosined — 2023-04-06T15:48:21Z
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.
Comment #1 by dlang-bot — 2023-04-07T12:06:32Z
@RazvanN7 created dlang/dmd pull request #15088 "Fix Issue 23832 - dmd regression 2.103.0 silent error cannot call decode at runtime" fixing this issue:
- Fix Issue 23832 - dmd regression 2.103.0 silent error cannot call decode at runtime
https://github.com/dlang/dmd/pull/15088
Comment #2 by dlang-bot — 2023-04-08T09:54:21Z
dlang/dmd pull request #15088 "Fix Issue 23832 - dmd regression 2.103.0 silent error cannot call decode at runtime" was merged into master:
- 960cd47e01652e7f11bb0a142b6794f86da4ea2e by RazvanN7:
Fix Issue 23832 - dmd regression 2.103.0 silent error cannot call decode at runtime
https://github.com/dlang/dmd/pull/15088