[Issue 21967] New: importC: Error function without 'this' cannot be 'const'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 25 13:09:47 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=21967

          Issue ID: 21967
           Summary: importC: Error function without 'this' cannot be
                    'const'
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: ibuclaw at gdcproject.org

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);

--


More information about the Digitalmars-d-bugs mailing list