module test; class Foo { void foo() { import std.traits; alias funs = MemberFunctionsTuple!( typeof( this ), "bar" ); void function( string ) b = &funs[ 0 ]; b( "world" ); } void bar( string s ) { import std.stdio; writeln( "hello ", s ); } } void main() { auto f = new Foo(); f.foo(); } On Ubuntu (but it has been tested on windows too ) dmd test.d causes segmentation fault
*** This issue has been marked as a duplicate of issue 13920 ***