www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23874] New: -profile=gc segfaults / ICE regression

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

          Issue ID: 23874
           Summary: -profile=gc segfaults / ICE regression
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: d.bugs webfreak.org

reproduction:

reduced.d
```
static if (is(typeof(new Object())))
    void foo()
    {
    }
```

dmd -c -profile=gc reduced.d

currently breaks building msgpack-d / DCD with profile-gc, which is needed for
CI / measuring memory usage in a PR.

Regressed with DMD 2.103.0

--
May 01 2023