[Issue 22030] New: importC: Wrong error with bad declarator
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jun 16 16:53:02 UTC 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 at puremagic.com
Reporter: ibuclaw at 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.
--
More information about the Digitalmars-d-bugs
mailing list