www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22039] New: ICE on infinite recursion in default parameter

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

          Issue ID: 22039
           Summary: ICE on infinite recursion in default parameter
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: ice, ice-on-invalid-code
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: elpenguino+D gmail.com

```
int func(int x = func()) { return x; }
```
As of DMD 2.097, this results in `Error: unknown, please file report on
issues.dlang.org`.

--
Jun 18