[Issue 24519] compiler segfault on default argument with slice operator []

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 24 12:13:43 UTC 2024


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

Dennis <dkorpel at live.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|compiler segfault on single |compiler segfault on
                   |default constructor         |default argument with slice
                   |argument                    |operator []

--- Comment #2 from Dennis <dkorpel at live.nl> ---
It doesn't even require variadic arguments, it's just about the empty slice:

```
void f(string file = ""[])
{

}

void g()
{
    f();
}
```

--


More information about the Digitalmars-d-bugs mailing list