[Issue 20634] @safe forces bounds checking on newly allocated array when using .ptr
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Sep 6 16:05:06 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=20634
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
--- Comment #2 from Dlang Bot <dlang-bot at dlang.rocks> ---
@ntrel created dlang/dmd pull request #15581 "Allow using .ptr in @safe code
when pointer is safe to dereference" fixing this issue:
- Fix Issue 20634 - @safe forces bounds checking on newly allocated array when
using .ptr
Also allow for any string literal.
https://github.com/dlang/dmd/pull/15581
--
More information about the Digitalmars-d-bugs
mailing list