[llvm-bugs] [Bug 48477] New: False positive in diagnostic shadow-field

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Dec 10 14:17:25 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=48477

            Bug ID: 48477
           Summary: False positive in diagnostic shadow-field
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: yitzhakm at google.com
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

```
struct Base { int type; };

struct S : public Base {
  static int Test(int type) {
    return type;
  }
};
```

results in a warning on method `Test`. Since that method is static, there's no
shadowing.

-- 
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/20201210/971553fb/attachment.html>


More information about the llvm-bugs mailing list