http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48224
Summary: ERROR: compile in g++ version 4.5 Product: gcc Version: 4.5.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: evgenij.fo...@gmail.com Created attachment 23741 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23741 source files I have found the code normal working with g++ version 4.4. After upgrade to g++ version 4.5 I see "ERROR: compile". I made simple code for demonstration this compile error. Look attached files. $ g++ compileError.cxx In file included from /usr/include/c++/4.5/bits/stl_algobase.h:66:0, from /usr/include/c++/4.5/bits/stl_tree.h:62, from /usr/include/c++/4.5/map:60, from compileError.hxx:1, from compileError.cxx:1: /usr/include/c++/4.5/bits/stl_pair.h: In instantiation of ‘std::pair<const int, structure>’: compileError.hxx:11:62: instantiated from here /usr/include/c++/4.5/bits/stl_pair.h:77:11: error: ‘std::pair<_T1, _T2>::second’ has incomplete type compileError.hxx:3:8: error: forward declaration of ‘struct structure’ distcc[7487] ERROR: compile compileError.cxx on localhost failed g++ installed from debian package "g++" version 4.5.2-4.