← Back to index
|
Original Bugzilla link
Bug 22405 – importC: Error: cannot modify 'const' expression '(*s).field'
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-10-17T13:47:17Z
Last change time
2021-10-21T21:39:35Z
Keywords
ImportC, pull, rejects-valid
Assigned to
No Owner
Creator
Iain Buclaw
Comments
Comment #0
by ibuclaw — 2021-10-17T13:47:17Z
--- struct S1 { int const *p; int *q; }; void f1(struct S1 *s) { s->p = (const int *)(s->q); }
Comment #1
by dlang-bot — 2021-10-17T22:30:02Z
@ibuclaw created dlang/dmd pull request #13190 "fix Issue 22405 - importC: Error: cannot modify 'const' expression '(*s).field'" fixing this issue: - fix Issue 22405 - importC: Error: cannot modify 'const' expression '(*s).field'
https://github.com/dlang/dmd/pull/13190
Comment #2
by dlang-bot — 2021-10-18T22:10:20Z
dlang/dmd pull request #13190 "fix Issue 22405 - importC: Error: cannot modify 'const' expression '(*s).field'" was merged into stable: - 6d6f766856de4bb54c6ca794341aa5a76173f13e by Iain Buclaw: fix Issue 22405 - importC: Error: cannot modify 'const' expression '(*s).field'
https://github.com/dlang/dmd/pull/13190
Comment #3
by dlang-bot — 2021-10-21T21:39:35Z
dlang/dmd pull request #13209 "Merge stable into master" was merged into master: - 1c0659eae3249ac082a2adb69b982a9e689a2229 by Iain Buclaw: fix Issue 22405 - importC: Error: cannot modify 'const' expression '(*s).field'
https://github.com/dlang/dmd/pull/13209