https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79503
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Mon Feb 20 06:03:45 2017 New Revision: 245586 URL: https://gcc.gnu.org/viewcvs?rev=245586&root=gcc&view=rev Log: 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. Added: trunk/gcc/testsuite/g++.dg/cpp0x/inh-ctor26.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/call.c