[Issue 21518] delegates not checked for attribute match in const arrays
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jan 1 23:30:46 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=21518
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
--- Comment #3 from Dlang Bot <dlang-bot at dlang.rocks> ---
@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
--
More information about the Digitalmars-d-bugs
mailing list