On Thu, 6 Nov 2014, Jack Howarth wrote:

> 2014-10-06  Jack Howarth <howarth.at....@gmail.com>
> 
>       PR other/63750
>       * gcc/ipa-chkp.c: Include sstream.
> 
> Index: gcc/ipa-chkp.c
> ===================================================================
> --- gcc/ipa-chkp.c    (revision 217192)
> +++ gcc/ipa-chkp.c    (working copy)
> @@ -18,6 +18,8 @@ You should have received a copy of the G
>  along with GCC; see the file COPYING3.  If not see
>  <http://www.gnu.org/licenses/>.  */
>  
> +#include <sstream>
> +
>  #include "config.h"

That's certainly wrong; system headers (including C++ system headers that 
may include C system headers) must never be included before config.h, 
because config.h may define feature test macros that are only effective if 
defined before any system headers are included.

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to