https://bugs.llvm.org/show_bug.cgi?id=47539
Bug ID: 47539
Summary: fallthrough label error emitted without context/line
information
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: C
Assignee: unassignedclangb...@nondot.org
Reporter: ndesaulni...@google.com
CC: blitzrak...@gmail.com, dgre...@apple.com,
erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
richard-l...@metafoo.co.uk
Blocks: 4068
void foo(int x) {
switch (x) {
__attribute__((__fallthrough__));
}
}
produces an error:
error: fallthrough annotation does not directly precede switch label
It doesn't tell me where in my source code this is coming from; which for a
file with a lot of includes is problematic.
Referenced Bugs:
https://bugs.llvm.org/show_bug.cgi?id=4068
[Bug 4068] [Meta] Compiling the Linux kernel with clang
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs