[Issue 17712] [REG 2.074] [LINK] Undefined reference to std.conv.toChars!(10, char, 1, uint).toChars(uint)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jun 12 20:03:45 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=17712
--- Comment #12 from Basile B. <b2.temp at gmx.com> ---
speculative could fail because it wrongly thinks that it will ALREADY be
codegened.
in toImpl (line 1394 of std.conv) we have
---
return toChars!(10, EEType)(value + 0).array;
---
but if we specifies the type of value:
---
return toChars!(10, EEType, LetterCase.lower, typeof(value + 0))(value +
0).array;
---
than the test case passes. Maybe IFTI fails/is wrong with "value + 0", trick to
promote) and then it gives another template that is HIM codegened.
--
More information about the Digitalmars-d-bugs
mailing list