https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63889
Kai Tietz <ktietz at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ktietz at gcc dot gnu.org --- Comment #4 from Kai Tietz <ktietz at gcc dot gnu.org> --- Issue is that we don't check for static function for template-parameter-count. So for this sample tmpl has 2 arguments, but in fact it has just 1. Not sure where we add this additional argument. We see for the template-decl 'template <class T> template <class>' ... By allowing args being less then expected template arguments, issue is fixed. But in fact we should check template-params - (is_static ? 1 : 0) ... or something like this.