[Issue 7231] New: Segfault using opDispatch with property notation
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 5 05:52:08 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7231
Summary: Segfault using opDispatch with property notation
Product: D
Version: D2
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: robert at octarineparrot.com
--- Comment #0 from Robert Clipsham <robert at octarineparrot.com> 2012-01-05 13:52:06 GMT ---
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.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list