[Issue 24016] New: ImportC: __attribute__ in switch statements: error: found `__attribute__` instead of statement

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 26 23:06:45 UTC 2023


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

          Issue ID: 24016
           Summary: ImportC: __attribute__ in switch statements: error:
                    found `__attribute__` instead of statement
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: jlourenco5691 at gmail.com

```c
void fun(int i)
{
  switch (i)
  {
    case 0: i++; __attribute__((fallthrough));
    default: return;
  }
}
```

--


More information about the Digitalmars-d-bugs mailing list