[Bug c++/65906] using-declaration allowed for non-direct base class

2021-07-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65906

Andrew Pinski  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED
   Target Milestone|--- |7.0

--- Comment #3 from Andrew Pinski  ---
This was fixed with r7-4255: Implement P0136R1, Rewording inheriting
constructors.

Which makes sense.

[Bug c++/65906] using-declaration allowed for non-direct base class

2015-04-27 Thread danregister at poczta dot fm
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65906

--- Comment #1 from Daniel Adamski danregister at poczta dot fm ---
Just to clarify, it is Base() that's being called, not Base(int, int) (I
should have used something else than __func__).


[Bug c++/65906] using-declaration allowed for non-direct base class

2015-04-27 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65906

Jonathan Wakely redi at gcc dot gnu.org changed:

   What|Removed |Added

   Keywords||accepts-invalid
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2015-04-27
 Ever confirmed|0   |1

--- Comment #2 from Jonathan Wakely redi at gcc dot gnu.org ---
(In reply to Daniel Adamski from comment #0)
 Possible duplicate: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32039

Maybe, but there is a specific rule regarding inheriting constructors that
applies here and not for 32039, in [namespace.udecl]/3:

If such a using-declaration names a constructor, the nested-name-specifier
shall name a direct base class of the class being defined;