[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
Mon Apr 10 09:57:45 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=17712
RazvanN <razvan.nitu1305 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
CC| |razvan.nitu1305 at gmail.com
Resolution|--- |WORKSFORME
--- Comment #22 from RazvanN <razvan.nitu1305 at gmail.com> ---
(In reply to moonlightsentinel from comment #21)
> Reduced test case without phobos that still fails with current dmd:
>
> =============================================
> // stdx/conv.d:
>
> void to(T)(uint args)
> {
> toChars!10(args);
> }
>
> alias CodepointSet = InversionList!();
>
> struct InversionList()
> {
> void toSourceCode()
> {
> toChars(0u);
> }
> }
>
> void toChars(ubyte radix = 10, T)(T) {}
>
> =============================================
> // test.d:
>
> void main()
> {
> import stdx.conv;
> to!string(0u);
> CodepointSet().toSourceCode();
> }
> =============================================
>
> dmd -c stdx/conv.d
> dmd test.d conv.o
I cannot reproduce this.
--
More information about the Digitalmars-d-bugs
mailing list