// RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify %s template struct bad { template static void f(T) {} // expected-note {{in instantiation of default argument for 'f' required here}} }; int main() { bad<0>::f(0); } // expected-note {{while substituting deduced template arguments into function template 'f'}}