Richard Smith e3536dda40 [modules] Ensure we've imported all declarations of a template before
attempting to lazily deserialize its specializations; otherwise, there might be
pending specializations that we don't know about yet.

llvm-svn: 230301
2015-02-24 02:44:23 +00:00

9 lines
180 B
C++

template<int N> struct A;
template<> struct A<1>;
template<int N> constexpr void f();
template<> constexpr void f<1>();
template<int N> extern int v;
template<> extern int v<1>;