[Issue 23854] New: Compiler hooks for decoding of strings with foreach is not templated

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Apr 24 04:02:46 UTC 2023


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

          Issue ID: 23854
           Summary: Compiler hooks for decoding of strings with foreach is
                    not templated
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: druntime
          Assignee: nobody at puremagic.com
          Reporter: alphaglosined at gmail.com

Some more compiler hooks that need converting to templates, with an example use
case:

```d
extern(C) void main() {
    string str = "Abc";
    foreach(dchar c; str) {
    }
}
```

Compile with -betterC:

undefined reference to `_aApplycd1'

All in rt/aApply.d

--


More information about the Digitalmars-d-bugs mailing list