Thread overview
[Issue 7231] New: Segfault using opDispatch with property notation
Jan 05, 2012
Robert Clipsham
Jan 26, 2012
Walter Bright
January 05, 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@puremagic.com
        ReportedBy: robert@octarineparrot.com


--- Comment #0 from Robert Clipsham <robert@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: -------
January 26, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7231



--- Comment #1 from github-bugzilla@puremagic.com 2012-01-26 02:11:26 PST ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 26, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7231



--- Comment #1 from github-bugzilla@puremagic.com 2012-01-26 02:11:26 PST ---
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 from github-bugzilla@puremagic.com 2012-01-26 02:11:38 PST ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 26, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7231


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


--- Comment #1 from github-bugzilla@puremagic.com 2012-01-26 02:11:26 PST ---
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 from github-bugzilla@puremagic.com 2012-01-26 02:11:38 PST ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------