PR c++/55261
* class.c (add_implicitly_declared_members): Use
lookup_fnfields_slot to get the base constructors.
From-SVN: r193621
+2012-11-19 Jason Merrill <jason@redhat.com>
+
+ PR c++/55261
+ * class.c (add_implicitly_declared_members): Use
+ lookup_fnfields_slot to get the base constructors.
+
2012-11-19 Jakub Jelinek <jakub@redhat.com>
PR middle-end/54630
if (DECL_SELF_REFERENCE_P (decl))
{
/* declare, then remove the decl */
- tree ctor_list = CLASSTYPE_CONSTRUCTORS (TREE_TYPE (decl));
+ tree ctor_list = lookup_fnfields_slot (TREE_TYPE (decl),
+ ctor_identifier);
location_t loc = input_location;
input_location = DECL_SOURCE_LOCATION (using_decl);
if (ctor_list)
--- /dev/null
+// PR c++/55261
+// { dg-options -std=c++11 }
+
+struct A
+{
+};
+struct B : A
+{
+ using A::A;
+};