[llvm-bugs] [Bug 47539] New: fallthrough label error emitted without context/line information

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Sep 15 15:45:55 PDT 2020


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: unassignedclangbugs at nondot.org
          Reporter: ndesaulniers at google.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200915/d430b7a4/attachment.html>


More information about the llvm-bugs mailing list