https://issues.dlang.org/show_bug.cgi?id=15043
bb.t...@gmx.com changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|major |normal --- Comment #1 from bb.t...@gmx.com --- Lowered importance. Actually the problem seems to come from a lValue/rValue thing because when using an intermediate variable to carry the delegate then this works: --- static if (member == "bar") { auto dg = &overload; // OK with intermediate value setDg(dg); } --- --