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

Dennis <dkor...@live.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dkor...@live.nl

--- Comment #8 from Dennis <dkor...@live.nl> ---
Reduced a bit further:

```
void f()
{
    int i;
    bool g(int I)()
    {
        static foreach(j; 0..11)
        {
            i++;
            return g!j();
        }
    }
    g!0;
}
```

The 11 is the number of enum members of Type. The amount of calls to
`checkEscapingSiblings` grows exponentially based on the loop length, which is
why compilation hangs.

--

Reply via email to