sberg added a comment.
Btw, ran into that with the even simpler test case
template<typename T> struct S {
static typename T::t const n = 0;
};
struct U { using t = int; };
int main() { return S<U>::n; }
https://reviews.llvm.org/D29271