[Issue 11246] New: [REG 2.063] Struct initialized in constructor is destroyed first

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 13 12:01:23 PDT 2013


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 at puremagic.com
        ReportedBy: code at benjamin-thaut.de


--- Comment #0 from Benjamin Thaut <code at benjamin-thaut.de> 2013-10-13 12:01:22 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: -------


More information about the Digitalmars-d-bugs mailing list