[Issue 24867] Wrong deprecation warning of @system variable usage under CTFE
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Nov 19 15:26:17 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24867
--- Comment #2 from Luís Ferreira <contact at lsferreira.net> ---
There's a few flaws/improvements to make here:
1. Misaligned pointers in static immutables that are already initialised are
fine
2. Usage of @system variables in CTFE may be ok (could be implementation
defined, e.g. JIT-based CTFE may also use misaligned pointers, but probably can
be eased on the current implementation)
3. Access of non- at system part of a struct should be @safe.
--
More information about the Digitalmars-d-bugs
mailing list