www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15836] New: [REG 2.071-b1] memory error when a class is not

https://issues.dlang.org/show_bug.cgi?id=15836

          Issue ID: 15836
           Summary: [REG 2.071-b1] memory error when a class is not
                    implicitly destructed and constructed with new
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: regression
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: b2.temp gmx.com

Created attachment 1592
  --> https://issues.dlang.org/attachment.cgi?id=1592&action=edit
source + dub description to reproduce the issue

- download the attachement
- unzip, cd to the dir
- try the dub package from the attachement with
  - dub --config=strange
  - dub --config=ok1
  - dub --config=ok2
  - dub --config=ok3


without explicit destruction (strange config) the following error appears, at
the end of the run-time:

 core.exception.InvalidMemoryOperationError src/core/exception.d(693): Invalid
memory operation
Mar 26 2016