https://issues.dlang.org/show_bug.cgi?id=21518
Dlang Bot <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #3 from Dlang Bot <[email protected]> --- @MoonlightSentinel created dlang/dmd pull request #12090 "Fix 21518 - delegates not checked for attribute match in const arrays" fixing this issue: - Fix 21518 - delegates not checked for attribute match in const arrays Const-conversion checks for delegates are forwarded to the type of `funcptr`. But `TypeFunction` did not implement `constConv`, causing the inherited `TypeNext.constConv` (which only checks const`/`shared`/...). to ignore the missmatched attributes. The bug was restricted to `const` arrays because checks for (im)mutable arrays didn't use `constConv` and instead failed due to the missmatched `deco`. https://github.com/dlang/dmd/pull/12090 --
