www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22406] New: importC: Error: 'switch' statement without a


          Issue ID: 22406
           Summary: importC: Error: 'switch' statement without a
                    'default'; use 'final switch' or add 'default:
                    assert(0);' or add 'default: break;'
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: critical
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

I guess SwitchStatements are not handled at all by importC semantics.
void f1()
    switch (1)
        case 1:

Also, the compiler emits:
Error: `object` is not a member of `void`

Oct 17 2021