www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23028] New: ImportC: found `_Generic` instead of statement.


          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 puremagic.com
          Reporter: dave287091 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.

Apr 17 2022