[Issue 21807] Non-immutable data can be converted to immutable using function call in ctor
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Apr 8 22:54:19 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=21807
--- Comment #8 from Dlang Bot <dlang-bot at dlang.rocks> ---
@MoonlightSentinel updated dlang/dmd pull request #12402 "Fix 21229 - Accept
construction of union member as initialization" mentioning this issue:
- Issue 21807 - Missing deprecation when slicing static array temporary...
...in class methods.
The checks for such slices relied on `va` while actually just caring
about the current type. This was broken by [1] which clears `va` for
class members to detect escapes of delegates.
This also applied to the checks for struct temporaries/literals.
[1] https://github.com/dlang/dmd/pull/8008
https://github.com/dlang/dmd/pull/12402
--
More information about the Digitalmars-d-bugs
mailing list