digitalmars.D.bugs - [Issue 8110] New: DMD tries to opCast when doing opEquals, and fails
- d-bugmail puremagic.com (22/22) May 16 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8110
- d-bugmail puremagic.com (7/7) May 16 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8110
- d-bugmail puremagic.com (8/8) May 19 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8110
- d-bugmail puremagic.com (7/7) May 19 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8110
http://d.puremagic.com/issues/show_bug.cgi?id=8110 Summary: DMD tries to opCast when doing opEquals, and fails Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: meh paranoici.org --- Comment #0 from meh. <meh paranoici.org> 2012-05-16 13:48:09 PDT --- The attached code fails with the following errors: lol.d(14): Error: template instance opCast!(Object) opCast!(Object) does not match template declaration opCast(T : int) lol.d(14): Error: function expected before (), not a.opCast!(Object) of type void I've been told to open a bug about it, so here it is. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 16 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8110 --- Comment #1 from meh. <meh paranoici.org> 2012-05-16 13:48:52 PDT --- Created an attachment (id=1105) Reduced testcase -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 16 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8110 --- Comment #2 from meh. <meh paranoici.org> 2012-05-19 04:13:54 PDT --- If to avoid the first error I add an opCast!(Object), it works with == but fails in a weird way when casting. Following an attachment that shows said behavior. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 19 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8110 --- Comment #3 from meh. <meh paranoici.org> 2012-05-19 04:16:56 PDT --- Created an attachment (id=1107) Reduced test case for weird cast behavior. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 19 2012