Thread overview
[Issue 22828] Compiler allow offset a pointer with types of size greater than sizeof(T*)
Feb 27, 2022
Dlang Bot
Feb 28, 2022
RazvanN
Dec 17, 2022
Iain Buclaw
February 27, 2022
https://issues.dlang.org/show_bug.cgi?id=22828

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #1 from Dlang Bot <dlang-bot@dlang.rocks> ---
@ljmf00 created dlang/dmd pull request #13732 "Fix issue 22828: dcast: use an implicit cast instead of explicit" fixing this issue:

- Fix issue 22828: dcast: use an implicit cast instead of explicit

  Signed-off-by: Luís Ferreira <contact@lsferreira.net>

https://github.com/dlang/dmd/pull/13732

--
February 28, 2022
https://issues.dlang.org/show_bug.cgi?id=22828

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

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

--- Comment #2 from RazvanN <razvan.nitu1305@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.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=22828

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P2

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

--- Comment #3 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/20062

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--