www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23433] New: [REG 2.081][ICE] Segmentation fault in

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

          Issue ID: 23433
           Summary: [REG 2.081][ICE] Segmentation fault in
                    dmd.blockexit.checkThrow at at src/dmd/blockexit.d:557
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

Reduced test case.

---
module object;

class Throwable { }
class Exception : Throwable { this(immutable(char)[]) { } }

void test4()
{
    try
        throw new Exception("ice");
    finally
    {
    }
}

--
Oct 23 2022