digitalmars.D.bugs - [Issue 11246] New: [REG 2.063] Struct initialized in constructor is destroyed first
- d-bugmail puremagic.com (23/23) Oct 13 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11246
- d-bugmail puremagic.com (12/12) Oct 13 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11246
- d-bugmail puremagic.com (10/10) Oct 14 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11246
- d-bugmail puremagic.com (9/9) Oct 14 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11246
- d-bugmail puremagic.com (10/10) Oct 14 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11246
http://d.puremagic.com/issues/show_bug.cgi?id=11246 Summary: [REG 2.063] Struct initialized in constructor is destroyed first Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: regression Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: code benjamin-thaut.de PDT --- Created an attachment (id=1263) repro case When initializing a struct inside a constructor it is destroyed first. Initializling a struct within the constructor should be equal to: auto var = StructType(5); See attached repro case. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 13 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11246 PDT --- To be more percise in dmd 2.062 and earlier the repro case would print ctor 5 dtor Starting with dmd 2.063 this prints ctor dtor dtor -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 13 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11246 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull, wrong-code https://github.com/D-Programming-Language/dmd/pull/2665 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 14 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11246 Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/4a8ce87381a0bc0595b718681cdae5d7bc97f3cb fix Issue 11246 - [REG 2.063] Struct initialized in constructor is destroyed first -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 14 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11246 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 14 2013