www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18395] New: std.conv.hexString can't be used in BetterC

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

          Issue ID: 18395
           Summary: std.conv.hexString can't be used in BetterC
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: betterC
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: greensunny12 gmail.com

---
extern(C) void main()
{
    import core.stdc.stdio;
    auto data = cast(ubyte[]) hexString!"deadbeef";
}
---
https://run.dlang.io/is/TEJDZO


 dmd -betterC main.d
/dlang/dmd/linux/bin64/../../src/phobos/std/conv.d:6046: error: undefined reference to '_D11TypeInfo_Aa6__initZ' /dlang/dmd/linux/bin64/../../src/phobos/std/conv.d:6046: error: undefined reference to '_d_arraysetlengthiT' /dlang/dmd/linux/bin64/../../src/phobos/std/conv.d:6051: error: undefined reference to '_D3std5ascii10isHexDigitFNaNbNiNfwZb' /dlang/dmd/linux/bin64/../../src/phobos/std/conv.d:6070: error: undefined reference to '_D11TypeInfo_Aa6__initZ' /dlang/dmd/linux/bin64/../../src/phobos/std/conv.d:6070: error: undefined reference to '_d_arraysetlengthiT' collect2: error: ld returned 1 exit status --
Feb 07 2018