public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/102468] New: False acceptance of invalid `using Parent::Grandparent`
@ 2021-09-23 11:38 fchelnokov at gmail dot com
  2021-10-26  7:57 ` [Bug c++/102468] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: fchelnokov at gmail dot com @ 2021-09-23 11:38 UTC (permalink / raw)
  To: gcc-bugs

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)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-26  7:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-23 11:38 [Bug c++/102468] New: False acceptance of invalid `using Parent::Grandparent` fchelnokov at gmail dot com
2021-10-26  7:57 ` [Bug c++/102468] " pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).