PR c++/79503 - inherited ctor taking base class
commit67378ae56d23c9109e6fe1176d40dcee23e422aa
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Feb 2017 06:03:45 +0000 (20 06:03 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Feb 2017 06:03:45 +0000 (20 06:03 +0000)
treebb8ad8dc5e28b66ade3ca40bb77c84732fe7446c
parentad2c271172d265148c9d3c10469fae6fd62f7f4b
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245586 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/g++.dg/cpp0x/inh-ctor26.C [new file with mode: 0644]