This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/56323] [C++11] cannot compile inherited constructor for typedef'ed base class
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 14 Feb 2013 14:42:20 +0000
- Subject: [Bug c++/56323] [C++11] cannot compile inherited constructor for typedef'ed base class
- Auto-submitted: auto-generated
- References: <bug-56323-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56323
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-02-14
CC| |jason at gcc dot gnu.org
Ever Confirmed|0 |1
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2013-02-14 14:42:20 UTC ---
I think [class.qual]/2 says both C and D are valid.
C is valid because it is a using-declaration that is a member-declaration and
the name specified after the nested-name-specifier is the same as the
identifier in the last component of the nested-name-specifier.
D is valid because the name specified after the nested-name-specifier is the
injected-class-name of A.
In both cases the using-declaration names the constructor, so it declares a set
of inheriting constructors.