Keeping a record of this: http://forum.dlang.org/thread/20130706211329.GA17171@quickfur.ath.cx --- // Function to test if T is independently instantiable. void f(T)() { T t; } void main() { int a = 42; struct S { int y; bool f() { return (a == 42); } } f!S(); } ---
To decide whether or not this is actually a bug.
This is still reported as a compiler error. And I can only agree that it should stay that way looking back at it a couple years on.