https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90137
--- Comment #2 from Konstantin Shegunov ---
Yes, this is the error I get.
What should happen instead is that compilation succeeds. Having the following
as declaration in using.h:
class DerivedPrivate;
class Derived final : public Base
{
public:
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: kshegunov at gmail dot com
Target Milestone: ---
Created attachment 46193
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46193&action=edit
A complete source code to reproduce