https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97453
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:ed7f9957bbb5e899099e1ef0e5f6234c453ef7da commit r11-4693-ged7f9957bbb5e899099e1ef0e5f6234c453ef7da Author: kamlesh kumar <kamleshbha...@gmail.com> Date: Mon Nov 2 20:40:21 2020 +0530 c++: DR2303, ambiguous base deduction [PR97453] When there are two possible matches and one is a base of the other, choose the derived class rather than fail. gcc/cp/ChangeLog 2020-10-21 Kamlesh Kumar <kamleshbha...@gmail.com> Jason Merrill <ja...@redhat.com> PR c++/97453 DR2303 * pt.c (get_template_base): Consider closest base in template deduction when base of base also matches. gcc/testsuite/ChangeLog 2020-10-21 Kamlesh Kumar <kamleshbha...@gmail.com> * g++.dg/DRs/dr2303.C: New test.