April 22, 2023
https://issues.dlang.org/show_bug.cgi?id=23851

          Issue ID: 23851
           Summary: Segfault when compiling with -profile=gc
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: dmd
          Assignee: nobody@puremagic.com
          Reporter: y.oudjana@protonmail.com

Created attachment 1871
  --> https://issues.dlang.org/attachment.cgi?id=1871&action=edit
GDB backtrace

Compiling the following program with -profile=gc makes DMD segfault:
```
import std.stdio;

int main(string[] args) {
        int[] a;
        a ~= 2;

        writeln(a);

        return 0;
}

```

Attached a backtrace.

$ dmd --version
DMD64 D Compiler v2.103.0
...

--