This comes up when substituting into an already-substituted template argument during constraint satisfaction checking. (cherry picked from commit b20ab412)