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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]

```
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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to