Bug 18395 – std.conv.hexString can't be used in BetterC

Status
RESOLVED
Resolution
DUPLICATE
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-02-08T01:02:28Z
Last change time
2018-02-08T02:44:46Z
Keywords
betterC
Assigned to
No Owner
Creator
Seb

Comments

Comment #0 by greensunny12 — 2018-02-08T01:02:28Z
--- 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
Comment #1 by greensunny12 — 2018-02-08T02:44:46Z
*** This issue has been marked as a duplicate of issue 18397 ***