www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20829] New: DMD 2.090.1 segfault

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

          Issue ID: 20829
           Summary: DMD 2.090.1 segfault
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: kdevel vogtner.de

```crash.d
class C { }

C foo ()
{
   assert (false);
}

void ps ()
{
   try {
      auto se = foo ();
      goto K;
   }
   catch (Exception) { }
   try {
K:
      auto se = foo ();
   }
   catch (Exception) { }
   return ps ();
}

void main ()
{
}
```

STR:

   $ dmd crash.d

result: Segmentation fault
expected: exit code 0

--
May 13 2020