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.
Comment #1 by github-bugzilla — 2012-01-26T02:11:26Z