[Issue 22759] ImportC: cannot modify const expression from dereferencing const pointer declared within function.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Nov 2 15:46:48 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22759
Adam D. Ruppe <destructionator at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |destructionator at gmail.com
--- Comment #6 from Adam D. Ruppe <destructionator at gmail.com> ---
yeah and then anything below the head const i think can stay transitive, which
might reject some valid C code but would avoid allowing invalid D code which i
think is a fair compromise.
my gut feeling is this would work in the majority of cases and people can work
in explicit casts for the remainder
--
More information about the Digitalmars-d-bugs
mailing list