module reflect;
import ddl.DefaultRegistry;
export void test()
{
}
void main()
{
auto registry = new DefaultRegistry();
auto inSitu = registry.load("reflect.map");
auto testFn = inSitu.getDExport!(void function(),"reflect.test")();
testFn;
}
I compile it with :
dmd reflect.d
dmd loops there
build reflect.d
can point out the error testFn();
but even modified correctly compiling that file still would loop there.
build can generate exe file correctlty
I guess that's kind of problem about template and import
Comment #1 by bugzilla — 2006-11-21T23:03:46Z
Please produce a self-contained example.
Comment #2 by clugdbug — 2008-11-28T07:04:16Z
This bug report doesn't contain enough reproduce, and it's two years old.