Issue 71405
Summary Could for have a warning for attribute shadowing in C++?
Labels new issue
Assignees
Reporter abique
    Hi,

The following C++ snippet doesn't trigger a single warning when compiled with `-Wall -Wextra -pedantic`:
```C++
struct A
{
  int x;
};

struct B : public A
{
  int x;
};
```

Do you think it'd be reasonable to offer a warning for detecting it?
Tested with clang 16.0.6.

Thank you very much.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to