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

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Apr 27 17:32:00 GMT 2015


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;

More information about the Gcc-bugs mailing list