digitalmars.D.bugs - [Issue 8925] New: Constructor is called instead of opCall if constructor is generic
- d-bugmail puremagic.com (36/36) Oct 31 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8925
- d-bugmail puremagic.com (10/10) Oct 31 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8925
- d-bugmail puremagic.com (9/9) Oct 31 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8925
- d-bugmail puremagic.com (11/11) Feb 09 2013 http://d.puremagic.com/issues/show_bug.cgi?id=8925
http://d.puremagic.com/issues/show_bug.cgi?id=8925 Summary: Constructor is called instead of opCall if constructor is generic Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: malteskarupke web.de PDT --- void main() { struct S { this(T)(auto ref T t) { } void opCall(int i) { x = i; } int x; } S s; s(5); assert(s.x == 5); } That assert will fail in DMD 2.060 because the line s(5) will actually call the constructor. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 31 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8925 Andrej Mitrovic <andrej.mitrovich gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrej.mitrovich gmail.com 20:40:18 PDT --- Seems to work ok in Git head, I don't know which pull fixed it. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 31 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8925 PDT --- It may actually have been this one: http://d.puremagic.com/issues/show_bug.cgi?id=6036 (Which is marked as fixed, even though it clearly still doesn't work until there is a new version of DMD) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 31 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8925 Andrej Mitrovic <andrej.mitrovich gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME 22:29:13 PST --- Fixed in 2.061. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 09 2013