Bug 7231 – Segfault using opDispatch with property notation

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2012-01-05T05:52:00Z
Last change time
2012-01-26T02:13:25Z
Keywords
ice-on-valid-code
Assigned to
nobody
Creator
robert
See also
http://d.puremagic.com/issues/show_bug.cgi?id=6858

Comments

Comment #0 by robert — 2012-01-05T05:52:06Z
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
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
Comment #2 by github-bugzilla — 2012-01-26T02:11:38Z
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