[Issue 24519] compiler segfault on single default constructor argument

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 24 11:40:42 UTC 2024


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

Dennis <dkorpel at live.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dkorpel at live.nl
           Hardware|x86_64                      |All
                 OS|Linux                       |All

--- Comment #1 from Dennis <dkorpel at live.nl> ---
The new code to resolve __FILE__ and __LINE__ in default arguments crashes when
walking over a slice generated from a typesafe variadic function. Reduced
example:

```
int buildPath(int[] paths...)
{
    return 0;
}

void f(int path = buildPath(1, 2))
{

}

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

--


More information about the Digitalmars-d-bugs mailing list