Index: include/bits/atomic_base.h =================================================================== --- include/bits/atomic_base.h (revision 216624) +++ include/bits/atomic_base.h (working copy) @@ -33,7 +33,6 @@ #pragma GCC system_header #include -#include #include #include Index: include/std/atomic =================================================================== --- include/std/atomic (revision 216624) +++ include/std/atomic (working copy) @@ -36,7 +36,7 @@ #if __cplusplus < 201103L # include -#endif +#else #include @@ -1129,4 +1129,6 @@ _GLIBCXX_END_NAMESPACE_VERSION } // namespace -#endif +#endif // C++11 + +#endif // _GLIBCXX_ATOMIC Index: testsuite/29_atomics/headers/atomic/std_c++0x_neg.cc =================================================================== --- testsuite/29_atomics/headers/atomic/std_c++0x_neg.cc (revision 216624) +++ testsuite/29_atomics/headers/atomic/std_c++0x_neg.cc (working copy) @@ -18,7 +18,7 @@ // with this library; see the file COPYING3. If not see // . -#include // { dg-excess-errors "In file included from" } +#include // { dg-error "ISO C.. 2011" "" { target *-*-* } 32 }