PR21312: Fix a regression in non-type template parameters of function type that are static member functions.