digitalmars.D.bugs - [Issue 6323] New: Regression(2.054) calling opAssign inside a struct initializer
- d-bugmail puremagic.com (43/43) Jul 15 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6323
- d-bugmail puremagic.com (12/12) Jul 15 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6323
- d-bugmail puremagic.com (12/12) Sep 06 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6323
- d-bugmail puremagic.com (10/10) Sep 06 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6323
http://d.puremagic.com/issues/show_bug.cgi?id=6323 Summary: Regression(2.054) calling opAssign inside a struct initializer Product: D Version: D2 Platform: x86 OS/Version: All Status: NEW Severity: regression Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: soywiz gmail.com --- Comment #0 from Carlos Ballesteros Velasco <soywiz gmail.com> 2011-07-15 07:46:36 PDT --- version = PROBLEM_ON_2054; struct TT { int v; static TT opCall(int vv) { TT v = void; v.v = vv; return v; } this(int that) { version (PROBLEM_ON_2054) { opAssign(that); } else { v = that; } } void opAssign(int that) { v = that; } } struct Test { TT field = TT(1); static assert (Test.init.field.v == 1); } int main(string[] args) { return 0; } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 15 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6323 kennytm gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kennytm gmail.com --- Comment #1 from kennytm gmail.com 2011-07-15 09:09:24 PDT --- The 'regression' is introduced in commit 846aa2683ec63c364e72281c4c655387806558e2. https://github.com/D-Programming-Language/dmd/commit/846aa -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 15 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6323 Don <clugdbug yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |clugdbug yahoo.com.au Resolution| |FIXED --- Comment #2 from Don <clugdbug yahoo.com.au> 2011-09-06 00:56:42 PDT --- This had the same root cause as bug 6337. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 06 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6323 Don <clugdbug yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|FIXED |DUPLICATE --- Comment #3 from Don <clugdbug yahoo.com.au> 2011-09-06 00:56:59 PDT --- *** This issue has been marked as a duplicate of issue 6337 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 06 2011