Version: Cppcheck 2.19.0 and 2.22.0 (built from the 2.22.0 tag), Ubuntu 26.04. Code (GCC and Clang compile it with -std=c++11, including an instantiation f<int>()): namespace n { template <typename... Ts> struct S {}; } template <typename... Ts, typename = n::S<decltype(Ts())...>> void f() {} $ cppcheck --language=c++ --std=c++11 h.cpp h.cpp:2:60: error: syntax error [syntaxError] template <typename... Ts, typename = n::S<decltype(Ts())...>> ^ No error when any one of these changes: > > instead of...