1 //===----------------------------------------------------------------------===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is dual licensed under the MIT and the University of Illinois Open 6 // Source Licenses. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 // <list> 11 12 // Check that std::list and its iterators can be instantiated with an incomplete 13 // type. 14 15 #include <list> 16 17 struct A { 18 std::list<A> l; 19 std::list<A>::iterator it; 20 std::list<A>::const_iterator cit; 21 std::list<A>::reverse_iterator rit; 22 std::list<A>::const_reverse_iterator crit; 23 }; 24 25 int main() { 26 A a; 27 } 28