diff options
author | Jason Merrill <jason@redhat.com> | 2012-11-19 09:05:36 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2012-11-19 09:05:36 -0500 |
commit | 5aeb734800f9bcf6216458eb39a1efa8b85fea1e (patch) | |
tree | 49224497754b7d358090cb97bc76deff371875b6 /gcc/cp/class.c | |
parent | abcc192bdb161171f2871a85de739b58f346548a (diff) | |
download | gcc-5aeb734800f9bcf6216458eb39a1efa8b85fea1e.zip gcc-5aeb734800f9bcf6216458eb39a1efa8b85fea1e.tar.gz gcc-5aeb734800f9bcf6216458eb39a1efa8b85fea1e.tar.bz2 |
re PR c++/55261 ([C++0x] ICE (SIGSEGV) when inheriting implicit constructor)
PR c++/55261
* class.c (add_implicitly_declared_members): Use
lookup_fnfields_slot to get the base constructors.
From-SVN: r193621
Diffstat (limited to 'gcc/cp/class.c')
-rw-r--r-- | gcc/cp/class.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 2737cbc..04f9df5 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -3014,7 +3014,8 @@ add_implicitly_declared_members (tree t, tree* access_decls, 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) |