[Issue 22828] Compiler allow offset a pointer with types of size greater than sizeof(T*)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 28 10:57:23 UTC 2022


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

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305 at gmail.com

--- Comment #2 from RazvanN <razvan.nitu1305 at gmail.com> ---
What is the basis of your assumption that this should be illegal? You are doing
pointer arithmetic in @System code, it is not the job of the compiler to
prevent you from doing something like this. I don't think the bug report is
valid.

--


More information about the Digitalmars-d-bugs mailing list