www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22151] New: Compiler crash when attempting to assign to

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

          Issue ID: 22151
           Summary: Compiler crash when attempting to assign to function
           Product: D
           Version: D2
          Hardware: All
               URL: http://dlang.org/
                OS: All
            Status: NEW
          Severity: critical
          Priority: P3
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: Ajieskola gmail.com

```d
void main()
{   *&main = *&main;
}
```

Attempting to compile leads to "illegal instruction" crash. Tested with 2.097.0
and 2.095.1

--
Jul 27 2021