class A { class opDispatch(string s) { class C {} } } void main() { A.B.C obj; // crash } It seems that the current opDispatch is meaningful only when it is used as a member function template. If it is the intention, then the above use of opDispatch should be diagnosed as an error, not segv of dmd.
Changeset 311.
Fixed dmd 2.038