https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90505
--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Test from 91479: template <class T> struct foo { template <typename U, typename=void> static void bar(const U&) {} static void bar(int x) { bar<int>(x); } };