Bug 23028 – ImportC: found _Generic instead of statement
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-04-17T07:02:01Z
Last change time
2022-04-19T07:30:22Z
Keywords
ImportC, pull, rejects-valid
Assigned to
No Owner
Creator
dave287091
Comments
Comment #0 by dave287091 — 2022-04-17T07:02:01Z
The following C code fails to compile:
int puts(const char*);
int main(){
_Generic(1, int:puts("int"), float:puts("float")); // found `_Generic` instead of statement.
}
Comment #1 by dlang-bot — 2022-04-19T06:08:21Z
@WalterBright created dlang/dmd pull request #14013 "fix Issue 23028 - ImportC: found _Generic instead of statement" fixing this issue:
- fix Issue 23028 - ImportC: found _Generic instead of statement
https://github.com/dlang/dmd/pull/14013
Comment #2 by dlang-bot — 2022-04-19T07:30:22Z
dlang/dmd pull request #14013 "fix Issue 23028 - ImportC: found _Generic instead of statement" was merged into master:
- 5be857bed4f935ff00c8cae2388a17d4fe18c274 by Walter Bright:
fix Issue 23028 - ImportC: found _Generic instead of statement
https://github.com/dlang/dmd/pull/14013