
the linkage of functions and variables while merging declarations from modules, and we don't necessarily have enough of the rest of the AST loaded at that point to allow us to compute linkage, so serialize it instead. llvm-svn: 174943
12 lines
295 B
C++
12 lines
295 B
C++
// Reduced from a crash encountered with a modularized libc++, where
|
|
// we would try to compute the linkage of a declaration before we
|
|
// finish loading the relevant pieces of it.
|
|
inline namespace D {
|
|
template<class>
|
|
struct U {
|
|
friend bool f(const U &);
|
|
};
|
|
|
|
template class U<int>;
|
|
}
|