[Issue 3647] New: non-function opDispatch crashes dmd
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Dec 25 04:56:30 PST 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 at puremagic.com
ReportedBy: kiki at kmonos.net
--- Comment #0 from Kazuhiro Inaba <kiki at 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: -------
More information about the Digitalmars-d-bugs
mailing list