[Issue 15985] [REG2.068/2.069] Code doesn't link unless compiled with -debug
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Oct 8 04:52:24 UTC 2017
https://issues.dlang.org/show_bug.cgi?id=15985
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla at digitalmars.com
--- Comment #3 from Walter Bright <bugzilla at digitalmars.com> ---
Reduced it a bit to:
struct S()
{
void delegate() d;
}
S!() f_Ds(U)()
{
static if (is(U == struct))
return S!()
(
{
foreach (i, field; U.init.tupleof)
f_Ds!(typeof(field))();
}
);
else
return f_Ds!(D)();
}
void f_E()
{
auto f = S!()
(
{
enum x = is(typeof(f_Ds!(D*)()));
f_Ds!(D*)();
}
);
}
struct A
{
D* d;
}
struct D
{
A a;
int b;
}
void main()
{
f_E();
f_Ds!(D*)();
}
--
More information about the Digitalmars-d-bugs
mailing list