[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
Wed Jun 13 07:18:58 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=17712
--- Comment #13 from Basile B. <b2.temp at gmx.com> ---
Other test case:
---
import std.datetime;
import std.typecons;
import std.variant;
Y a()
{
Y n = Y(Y[].init);
n.get!(X[]);
return n;
}
struct X
{
Y key;
}
struct Y
{
Algebraic!(Y[]) value_;
this(T)(T value)
{
value_ = value;
}
bool opEquals(T)(T rhs) const
{
static if(is(Unqual!T == Y))
{
return true;
}
else
{
return get!(T, No.x) == get!T;
}
}
T get(T, Flag!"x" x = Yes.x)() const
{
return this[""].get!(T, x);
}
Y opIndex(T)(T index) const
{
const X[] pairs;
if(pairs[0].key == index)
{
assert(0);
}
assert(0);
}
}
void main(){}
---
linker error without -allinst
--
More information about the Digitalmars-d-bugs
mailing list