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

Dlang Bot <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Dlang Bot <[email protected]> ---
dlang/dmd pull request #12090 "Fix 21518 - delegates not checked for attribute
match in const arrays" was merged into master:

- de27c4edb84cab50f93f77283702d32bc6a38b48 by MoonlightSentinel:
  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

--

Reply via email to