The following testcase segfaults with dmd 2.057: ---- struct Contract { @property void opDispatch(string name, T)(T value) { } } void validate() { Contract title; title.maxLength(255); // Works title.maxLength = 255; // Segfault } ---- When compiled with dmd -c test.d, tested on OS X 64 and Ubuntu 32.
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/f88878558c3066abed4f288c9dfa717427041be1 fix Issue 7231 - Segfault using opDispatch with property notation
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/4f0980fc1fef275d3dbb6994eefeea42e6e863f2 fix Issue 7231 - Segfault using opDispatch with property notation