https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108550
--- Comment #8 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Potential fix:
--- a/gcc/cp/pt.cc
+++ b/gcc/cp/pt.cc
@@ -10355,6 +10355,7 @@ lookup_and_finish_template_variable (tree templ, tree
targs,
if (TMPL_PARMS_DEPTH (DECL_TEMPLATE_PARMS (templ)) == 1
&& !any_dependent_template_arguments_p (targs))
{
+ complain &= ~tf_partial;
var = finish_template_variable (var, complain);
mark_used (var);
}
but I need to think some more about it.
