www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23490] New: DMD creating corrupted vtable

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

          Issue ID: 23490
           Summary: DMD creating corrupted vtable
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: puneet coverify.org

Created attachment 1862
  --> https://issues.dlang.org/attachment.cgi?id=1862&action=edit
reduced code for reproducing bug

For certain module hierarchies, DMD is creating a corrupted vtable. Executable
segfaults with the latest 2.101 release and LDC2 release 1.30. works fine with
version 2.100 and with LDC2 1.29 releases.

To replicate untar the attachment and:

$ tar zxf code.tgz
$ cd code
$ rdmd test.d

--
Nov 16 2022