|--- |FIXED
--- Comment #9 from Dlang Bot ---
dlang/dmd pull request #14621 "fix Issue 22759 - ImportC: cannot modify const
expression from derefe…" was merged into master:
- 9fbfc7bcb314ce16bfc3e662dbf7fb4ca5a446a4 by Walter Bright:
fix Issue 22759 - ImportC: cannot modify const
---
@WalterBright created dlang/dmd pull request #14621 "fix Issue 22759 - ImportC:
cannot modify const expression from derefe…" fixing this issue:
- fix Issue 22759 - ImportC: cannot modify const expression from dereferencing
const pointer declared within function
https://github.com/dlang/dmd/pull/14621
--
https://issues.dlang.org/show_bug.cgi?id=22759
--- Comment #7 from Steven Schveighoffer ---
(In reply to dave287091 from comment #4)
> Just treat declarations of
> `int * data` and `int * const data` the same in the body of c functions (as
> long as they are not also static).
apologies, it
https://issues.dlang.org/show_bug.cgi?id=22759
Adam D. Ruppe changed:
What|Removed |Added
CC||destructiona...@gmail.com
--- Comment #6
https://issues.dlang.org/show_bug.cgi?id=22759
Steven Schveighoffer changed:
What|Removed |Added
CC||schvei...@gmail.com
--- Comment #5
https://issues.dlang.org/show_bug.cgi?id=22759
--- Comment #4 from dave287...@gmail.com ---
Until D adds head const, couldn’t you do a similar fix as for
https://issues.dlang.org/show_bug.cgi?id=22534 ? Just treat declarations of
`int * data` and `int * const data` the same in the body of c
https://issues.dlang.org/show_bug.cgi?id=22759
mhh changed:
What|Removed |Added
CC||maxha...@gmail.com
--- Comment #3 from mhh ---
The
https://issues.dlang.org/show_bug.cgi?id=22759
--- Comment #2 from dave287...@gmail.com ---
This bug was encountered in this blogpost:
https://briancallahan.net/blog/20220704.html (section `Running make`).
--
https://issues.dlang.org/show_bug.cgi?id=22759
Walter Bright changed:
What|Removed |Added
CC||bugzi...@digitalmars.com
--- Comment #1