Bug 22069 – importC: Error: found '&' instead of statement
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-06-22T19:24:38Z
Last change time
2021-06-24T00:56:14Z
Keywords
ImportC, pull, rejects-valid
Assigned to
No Owner
Creator
Iain Buclaw
Comments
Comment #0 by ibuclaw — 2021-06-22T19:24:38Z
This code is valid as per the grammar, but rejected.
---
void test()
{
int var;
&var;
}
Comment #1 by ibuclaw — 2021-06-22T20:23:58Z
(In reply to Iain Buclaw from comment #0)
> This code is valid as per the grammar, but rejected.
... but rejected by dmd importC. Other C compilers silently accept it.
Comment #2 by dlang-bot — 2021-06-23T21:51:33Z
@ibuclaw created dlang/dmd pull request #12742 "fix Issue 22069 - importC: Error: found '&' instead of statement" fixing this issue:
- fix Issue 22069 - importC: Error: found '&' instead of statement
https://github.com/dlang/dmd/pull/12742
Comment #3 by dlang-bot — 2021-06-24T00:56:14Z
dlang/dmd pull request #12742 "fix Issue 22069 - importC: Error: found '&' instead of statement" was merged into master:
- 97eaf1682bf3f923d8bc7aceebc1869ce4bf4dec by Iain Buclaw:
fix Issue 22069 - importC: Error: found '&' instead of statement
https://github.com/dlang/dmd/pull/12742