[Bug c++/59033] cannot control inherited constructors access

daniel.kruegler at googlemail dot com gcc-bugzilla@gcc.gnu.org
Thu Nov 7 12:00:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59033

Daniel Krügler <daniel.kruegler at googlemail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.kruegler@googlemail.
                   |                            |com

--- Comment #2 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
The wording in the standard is pretty clear (12.9 p4):

"A constructor so declared has the same access as the corresponding constructor
in X."

The gcc compiler (and clang as well) both behave according to this
specification.

A using declaration for a type is different: There can not be two (or more)
types of the same name within such a using declaration.


More information about the Gcc-bugs mailing list