https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100078
--- Comment #1 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:00a2774923c1dc5666cd26bb9b8c37b1b7dd689d commit r11-8182-g00a2774923c1dc5666cd26bb9b8c37b1b7dd689d Author: Jason Merrill <ja...@redhat.com> Date: Wed Apr 14 14:14:31 2021 -0400 c++: premature overload resolution redux [PR100078] My patch for PR93085 didn't consider that a default template argument can also make a template dependent. gcc/cp/ChangeLog: PR c++/100078 PR c++/93085 * pt.c (uses_outer_template_parms): Also look at default template argument. gcc/testsuite/ChangeLog: PR c++/100078 * g++.dg/template/dependent-tmpl2.C: New test.