Bug 3647 – non-function opDispatch crashes dmd

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2009-12-25T04:56:00Z
Last change time
2015-06-09T05:13:50Z
Assigned to
nobody
Creator
kiki

Comments

Comment #0 by kiki — 2009-12-25T04:56:30Z
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.
Comment #1 by bugzilla — 2009-12-25T11:43:26Z
Changeset 311.
Comment #2 by bugzilla — 2009-12-31T11:23:01Z
Fixed dmd 2.038