[Issue 23028] New: ImportC: found `_Generic` instead of statement.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Apr 17 07:02:01 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=23028

          Issue ID: 23028
           Summary: ImportC: found `_Generic` instead of statement.
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: ImportC, rejects-valid
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: dave287091 at gmail.com

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.
}

--


More information about the Digitalmars-d-bugs mailing list