https://issues.dlang.org/show_bug.cgi?id=18451
--- Comment #7 from ArturG <[email protected]> --- (In reply to ArturG from comment #6) > (In reply to ArturG from comment #5) > > (In reply to ArturG from comment #4) > > > std.container and std.variant are also affected by this, none of them > > > workd > > > with a void delegate(void*). > > > > ok was able to find the code that broke std.container for me > > > > template Temp(alias fun) > > { > > enum foo1 = [__traits(getFunctionAttributes, fun)]; // fails > > //enum foo1 = __traits(getFunctionAttributes, fun); // works > > } > > > > void test(){} > > > > void main(string[] args) > > { > > import std.stdio, std.container; > > > > Temp!test.foo1.writeln; > > > > void delegate(void*) dg; > > SList!(void delegate(void*)) list; > > list.insert(dg); > > list[].writeln; > > } > > reduced it abit furter: > > import std.meta, std.conv; > void delegate(void*) vdg; > enum s = [Alias!("asd")].to!string; > SList!(void delegate(void*)) list; > list.insert(vdg); > list.writeln; this fails since dmd 2.067.1 void main(string[] args) { import std.conv, std.container, std.stdio; void delegate(void*) vdg; auto s = [5f].to!(double[]); SList!(void delegate(void*)) list; list.insert(vdg); list.writeln; } --
