digitalmars.D.bugs - [Issue 7612] New: Bad error message when missing compile time opCmp in struct used in enums
- d-bugmail puremagic.com (33/33) Feb 29 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7612
http://d.puremagic.com/issues/show_bug.cgi?id=7612 Summary: Bad error message when missing compile time opCmp in struct used in enums Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: simendsjo gmail.com --- Comment #0 from simendsjo <simendsjo gmail.com> 2012-02-29 10:43:05 PST --- Notice the error message says that "S.opCmp is not callable using E". struct S { int opCmp(ref const S2 other) { return 0; } } enum E : S { a = S(), b = S() } Error: undefined identifier S2, did you mean struct S? Error: function opcmp.S.opCmp (ref _error_) is not callable using argument types (E) Error: function opcmp.S.opCmp (ref _error_) is not callable using argument types (E) Related to http://d.puremagic.com/issues/show_bug.cgi?id=4423 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 29 2012