http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59436
--- Comment #1 from Uroš Bizjak <ubizjak at gmail dot com> --- On a related note, without -std=gnu++0x: $ /ssd/uros/gcc-build/gcc/cc1plus -g -O2 -fpreprocessed -quiet stdc++.ii In file included from /ssd/uros/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/stl_pair.h:59:0, from /ssd/uros/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:64, from /ssd/uros/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/char_traits.h:39, from /ssd/uros/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/ios:40, from /ssd/uros/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/istream:38, from /ssd/uros/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/sstream:38, from /ssd/uros/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/complex:45, from /ssd/uros/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/ccomplex:38, from /home/uros/gcc-svn/trunk/libstdc++-v3/include/precompiled/stdc++.h:52: /ssd/uros/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/move.h: In instantiation of ‘void std::swap(_Tp&, _Tp&) [with _Tp = std::thread::id]’: /ssd/uros/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/thread:158:33: required from here /ssd/uros/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/move.h:176:11: internal compiler error: in type_has_trivial_fn, at cp/method.c:435 __a = _GLIBCXX_MOVE(__b); ^ 0x6b2763 type_has_trivial_fn /home/uros/gcc-svn/trunk/gcc/cp/method.c:435 0x557321 build_over_call /home/uros/gcc-svn/trunk/gcc/cp/call.c:7050 0x55cd6c build_new_op_1 /home/uros/gcc-svn/trunk/gcc/cp/call.c:5355 0x55d217 build_new_op(unsigned int, tree_code, int, tree_node*, tree_node*, tree_node*, tree_node**, int) /home/uros/gcc-svn/trunk/gcc/cp/call.c:5516 0x695922 cp_build_modify_expr(tree_node*, tree_code, tree_node*, int) /home/uros/gcc-svn/trunk/gcc/cp/typeck.c:7339 (Probably ICE on ivalid in this case).