The issue is the same as in #13675, but it still exists in GCC4. The problem is: #include "precompiled.h" #include "precompiled.h" gives: $ g++ test.cpp test.cpp:2:21: calling fdopen: Bad file descriptor
-- Summary: Invalid handling of multiple includes of precompiled header Product: gcc Version: 4.0.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: a dot darovskikh at compassplus dot ru CC: gcc-bugs at gcc dot gnu dot org GCC host triplet: everywhere http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24029