https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90338
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:c47f6f69745cd41cb7cb00407bf1ff81b2a56124 commit r9-8341-gc47f6f69745cd41cb7cb00407bf1ff81b2a56124 Author: Jason Merrill <ja...@redhat.com> Date: Thu Mar 5 10:22:25 2020 -0500 c++: Fix SFINAE for invalid non-type tparm types. Just missing the usual SFINAE pattern here. This was fixed for GCC 10 as a drive-by in r277902. gcc/cp/ChangeLog 2020-03-05 Jason Merrill <ja...@redhat.com> PR c++/90338 * pt.c (invalid_nontype_parm_type_p): Check complain for non-literal and mutable errors.