The following program crashes during codegen, and looks to have done so since Clang 9.
template <typename>
struct TCls {
template <typename T>
static auto var = T::smem;
};
struct S { static constexpr int smem = 1; };
int main() {
(void) TCls<int>::var<S>;
}
https://godbolt.org/z/x9eYMKfrv