PR c++/79503 - inherited ctor taking base class
authorJason Merrill <jason@redhat.com>
Mon, 20 Feb 2017 06:03:45 +0000 (01:03 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 20 Feb 2017 06:03:45 +0000 (01:03 -0500)
commitb80dfe4441b689217cb3aefbc24c90d97b17d154
treebb8ad8dc5e28b66ade3ca40bb77c84732fe7446c
parentc9688c535ead0299d55343f99b165e025321579f
PR c++/79503 - inherited ctor taking base class

* call.c (add_function_candidate): Also check that
DECL_INHERITED_CTOR_BASE is reference-related to the parameter type.

From-SVN: r245586
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/g++.dg/cpp0x/inh-ctor26.C [new file with mode: 0644]