Thread overview
[Issue 3647] New: non-function opDispatch crashes dmd
Dec 25, 2009
Kazuhiro Inaba
Dec 25, 2009
Walter Bright
Dec 31, 2009
Walter Bright
December 25, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3647

           Summary: non-function opDispatch crashes dmd
           Product: D
           Version: future
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: kiki@kmonos.net


--- Comment #0 from Kazuhiro Inaba <kiki@kmonos.net> 2009-12-25 04:56:30 PST ---
class A {
    class opDispatch(string s) {
        class C {}
    }
}

void main() {
    A.B.C obj; // crash
}

It seems that the current opDispatch is meaningful only when it is
used as a member function template. If it is the intention, then the
above use of opDispatch should be diagnosed as an error, not segv of dmd.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 25, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3647


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com


--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> 2009-12-25 11:43:26 PST ---
Changeset 311.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 31, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3647


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2009-12-31 11:23:01 PST ---
Fixed dmd 2.038

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