[Issue 22763] New: importing std.utf fails in BetterC

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Feb 11 17:28:55 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=22763

          Issue ID: 22763
           Summary: importing std.utf fails in BetterC
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: druntime
          Assignee: nobody at puremagic.com
          Reporter: snarwin+bugzilla at gmail.com

As of DMD 2.098.1, the following program fails to compile with -betterC

---
import std.utf;
---

The error message is:

---
/dlang/dmd/linux/bin64/../../src/phobos/std/utf.d(66): Error: module
`core.exception` import `UnicodeException` not found
---

This error occurs because the druntime symbol core.exception.UnicodeException
is in the `else` block of a `version (D_BetterC)` declaration.

--


More information about the Digitalmars-d-bugs mailing list