https://issues.dlang.org/show_bug.cgi?id=23112
Dennis <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Dennis <[email protected]> --- An uninstantiated template generates no code, so here's the test modified a bit: ``` struct Forward(alias F) { auto call()() { return F(); } } auto bar(int a) @nogc nothrow @safe { auto f() { return a; } return Forward!f(); } extern(C) void main() @nogc { assert(bar(3).call() == 3); } ``` Compile with -betterC and you get: undefined reference to '_d_allocmemory' --
