https://issues.dlang.org/show_bug.cgi?id=21918
Dlang Bot <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #1 from Dlang Bot <[email protected]> --- @MoonlightSentinel created dlang/dmd pull request #12517 "Fix 21918 - Segfault for getParameterStorageClasses for invalid funct…" fixing this issue: - Fix 21918 - Segfault for getParameterStorageClasses for invalid functions The type of a `FuncDeclaration` is set to `TypeError` if the `auto` inference fails. So `getParameters` has to check that the type is actually a `TypeFunction`. The additional check in `traits.d` prevents the invalid error message: ``` Error: parameter index must be in range 0..0 not 0 ``` https://github.com/dlang/dmd/pull/12517 --
