← Back to index
|
Original Bugzilla link
Bug 24016 – ImportC: __attribute__ in switch statements: error: found `__attribute__` instead of statement
Status
RESOLVED
Resolution
WORKSFORME
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2023-06-26T23:06:45Z
Last change time
2023-08-04T01:27:46Z
Keywords
ImportC
Assigned to
No Owner
Creator
João Lourenço
Comments
Comment #0
by jlourenco5691 — 2023-06-26T23:06:45Z
```c void fun(int i) { switch (i) { case 0: i++; __attribute__((fallthrough)); default: return; } } ```
Comment #1
by bugzilla — 2023-08-04T01:27:46Z
I get a warning from gcc and clang on this: warning: empty declaration [enabled by default] It compiles without error with the latest ImportC. If there are further issues with this, please submit them.