D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 23028 - ImportC: found _Generic instead of statement
Summary: ImportC: found _Generic instead of statement
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 normal
Assignee: No Owner
URL:
Keywords: ImportC, pull, rejects-valid
Depends on:
Blocks:
 
Reported: 2022-04-17 07:02 UTC by dave287091
Modified: 2022-04-19 07:30 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description dave287091 2022-04-17 07:02:01 UTC
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 Dlang Bot 2022-04-19 06:08:21 UTC
@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 Dlang Bot 2022-04-19 07:30:22 UTC
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