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: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 27 Feb 2013 18:13:34 +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
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2013-02-27 18:13:34 UTC ---
Author: jason
Date: Wed Feb 27 18:13:24 2013
New Revision: 196316
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196316
Log:
PR c++/56358
PR c++/56323
* name-lookup.c (do_class_using_decl): Use ctor_identifier instead
of the base name for inheriting ctors.
(push_class_level_binding_1): Remove inheriting ctor handling.
* pt.c (tsubst_decl) [USING_DECL]: Likewise.
* class.c (add_implicitly_declared_members): Adjust.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/inh-ctor18.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/class.c
trunk/gcc/cp/name-lookup.c
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/g++.dg/inherit/using5.C
trunk/gcc/testsuite/g++.old-deja/g++.other/using3.C