Bug 21967 – importC: Error function without 'this' cannot be 'const'
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-05-25T13:09:47Z
Last change time
2021-05-26T12:44:34Z
Keywords
ImportC, pull, rejects-valid
Assigned to
No Owner
Creator
Iain Buclaw
Comments
Comment #0 by ibuclaw — 2021-05-25T13:09:47Z
When declaring a function that returns a const result.
---
const int const_int_fn(void);
const int *const_int_fnptr(void);
const int **const_int_fnptrptr(void);
Comment #1 by dlang-bot — 2021-05-25T20:58:25Z
@ibuclaw created dlang/dmd pull request #12584 "fix Issue 21967 - importC: Error function without 'this' cannot be 'const'" fixing this issue:
- fix Issue 21967 - importC: Error function without 'this' cannot be 'const'
https://github.com/dlang/dmd/pull/12584