Both these system include files define invalid_argument. ostream does this by indrectly including i686-pc-linux-gnu/bits/error_constants.h.
This is for the 20071026 snapshot. -- Summary: <stdexcept> and <ostream> invalid_argument name clash with -std=gnu++0x Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: cppljevans at suddenlink dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33983