[Issue 21518] delegates not checked for attribute match in const arrays

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 2 19:07:58 UTC 2021


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

Dlang Bot <dlang-bot at dlang.rocks> changed:

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

--- Comment #4 from Dlang Bot <dlang-bot at dlang.rocks> ---
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

--


More information about the Digitalmars-d-bugs mailing list