D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3647 - non-function opDispatch crashes dmd
Summary: non-function opDispatch crashes dmd
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other Windows
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-25 04:56 UTC by Kazuhiro Inaba
Modified: 2015-06-09 05:13 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Kazuhiro Inaba 2009-12-25 04:56:30 UTC
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 Walter Bright 2009-12-25 11:43:26 UTC
Changeset 311.
Comment 2 Walter Bright 2009-12-31 11:23:01 UTC
Fixed dmd 2.038