[Issue 7855] New: Wrong module dtor order

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Apr 8 02:05:42 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7855

           Summary: Wrong module dtor order
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: nobody at puremagic.com
        ReportedBy: code at benjamin-thaut.de


--- Comment #0 from Benjamin Thaut <code at benjamin-thaut.de> 2012-04-08 02:06:18 PDT ---
Created an attachment (id=1084)
repro case

When using a mixin template, which uses a module thats imported with a public
import, the order the module destructors are called is wrong. The destructor of
the module that is used by the mixin template gets called before the destructor
of the module that uses the mixin template. Therefore the module that uses the
mixin template works on a already destructed version of the module.

See attached repro case.

Tested with dmd 2.058

-- 
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