------- Comment #5 from doko at ubuntu dot com 2010-01-12 13:39 ------- Created an attachment (id=19547) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19547&action=view) preprocessed source
the attached testcase builds with the 4.4 branch, but not with 4.5. lowering optimization to -O1 works around the build failure. $ g++ -g -O2 -std=c++0x -c file_lie.ii In file included from /usr/include/c++/4.5/bits/move.h:38:0, from /usr/include/c++/4.5/bits/stl_pair.h:60, from /usr/include/c++/4.5/utility:71, from /usr/include/c++/4.5/unordered_map:42, from file_lie.cpp:22: /usr/include/c++/4.5/type_traits: In instantiation of 'const bool std::__is_constructible_helper<stat_override, override_key&&>::__value': /usr/include/c++/4.5/type_traits:235:5: instantiated from 'std::is_constructible<stat_override, override_key&&>' /usr/include/c++/4.5/bits/stl_pair.h:257:49: instantiated from here /usr/include/c++/4.5/type_traits:224:67: internal compiler error: in copy_fn_p, at cp/decl.c:9973 Please submit a full bug report, with preprocessed source if appropriate. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42634