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: [email protected]
Reporter: [email protected]
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.
--