| Richard Smith | 8858159 | 2013-02-12 05:48:23 +0000 | [diff] [blame] | 1 | // Reduced from a crash encountered with a modularized libc++, where |
| 2 | // we would try to compute the linkage of a declaration before we | ||||
| 3 | // finish loading the relevant pieces of it. | ||||
| 4 | inline namespace D { | ||||
| 5 | template<class> | ||||
| 6 | struct U { | ||||
| 7 | friend bool f(const U &); | ||||
| 8 | }; | ||||
| 9 | |||||
| 10 | template class U<int>; | ||||
| 11 | } | ||||