https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102468
Bug ID: 102468
Summary: False acceptance of invalid `using
Parent::Grandparent`
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: fchelnokov at gmail dot com
Target Milestone: ---
This code is invalid due-to specific `using` line, but GCC erroneously accepts
it:
```
struct A {};
struct B : A {};
struct C : B {
using B::A; //???
};
```
There shall be an error printed (as MSVC does)