June 16, 2021
https://issues.dlang.org/show_bug.cgi?id=22030

          Issue ID: 22030
           Summary: importC: Wrong error with bad declarator
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody@puremagic.com
          Reporter: ibuclaw@gdcproject.org

For example:
---
int );
---

GCC errors with:
---
error: expected identifier or ‘(’ before ‘)’ token
---

But DMD errors with:
---
Error: `=`, `;` or `,` expected
---

There is the following line in cparse.d
---
   error("identifier or `(` expected"); // )
---
which is hit with code such as `int * )`, this seems to suggest that cparseDeclarator has an incomplete implementation.

--