Summary: Struct member destructor can not be called from shared
                    struct instance
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD

--- Comment #0 from Benjamin Thaut <> 2012-06-25 07:13:33 
PDT ---
Created an attachment (id=1119)
repro case

If a struct a has another struct b as a member which has a destructor and the
struct a is created as shared, the destructor of b can not be called.
The error message dmd generates is:

Error: destructor () is not callable using argument types ()

Tested with dmd 2.059

This prevents one from using shared properly together with structs.

See attached repro case

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to