digitalmars.D.bugs - [Issue 11271] New: [REG 2.063] auto ref opAssign + destructor + struct literal fails
- d-bugmail puremagic.com (47/47) Oct 15 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11271
- d-bugmail puremagic.com (12/12) Oct 15 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11271
- d-bugmail puremagic.com (11/11) Oct 15 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11271
- d-bugmail puremagic.com (9/9) Oct 15 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11271
- d-bugmail puremagic.com (10/10) Oct 15 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11271
http://d.puremagic.com/issues/show_bug.cgi?id=11271 Summary: [REG 2.063] auto ref opAssign + destructor + struct literal fails Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: rejects-valid Severity: regression Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: code benjamin-thaut.de PDT --- The following code used to work fine up to dmd 2.062. Error message of dmd 2.063.2 and dmd 2.064 beta 1: repro.d(16): Error: template repro.SmartPtr!(Object).SmartPtr.opAssign(U)(auto ref U rh) cannot deduce template function from argument types !()(SmartPtr!(Object)) Error message of dmd 2.064 git head: repro.d(16): Error: template repro.SmartPtr!(Object).SmartPtr.opAssign does not match any function template declaration. Candidates are: repro.d(8): repro.SmartPtr!(Object).SmartPtr.opAssign(U)(auto ref U rh) repro.d(16): Error: template repro.SmartPtr!(Object).SmartPtr.opAssign(U)(auto ref U rh) cannot deduce template function from argument types !()(SmartPtr!(Object)) Repro case: struct SmartPtr(T) { ~this() { } // BUG: adding "auto ref" to U will fail compilation void opAssign(U)(auto ref U rh) { } } void main(string[] args) { SmartPtr!Object a; a = SmartPtr!Object(); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 15 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11271 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull The introduced commit: https://github.com/D-Programming-Language/dmd/commit/e5ca01905d59fbbccce45ef66803ee8f05a2ef70 https://github.com/D-Programming-Language/dmd/pull/2669 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 15 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11271 Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/5147c8a1f28053429378e016bed6b5e9bbe9c7e4 fix Issue 11271 - auto ref opAssign + destructor + struct literal fails https://github.com/D-Programming-Language/dmd/commit/f2a0a8a4699585c484ef5f5afb1553ae4a1562cf [REG 2.063] Issue 11271 - auto ref opAssign + destructor + struct literal fails -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 15 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11271 Commit pushed to 2.064 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/c6edebb4138f2f3b9017183b6780b124489ecc1f [REG 2.063] Issue 11271 - auto ref opAssign + destructor + struct literal fails -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 15 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11271 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla digitalmars.com Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 15 2013