From patchwork Thu Feb 23 18:25:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 731658 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vTjN913w4z9s74 for ; Fri, 24 Feb 2017 05:25:43 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="tNuYWGLx"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:mime-version:content-type; q=dns; s=default; b=Gn+uxKHSx2m9IZsRP6athwJ2eG/9scrdKJgFTOcrMfxd5TxskX FXaD+it6TVA4XNYfHSBUZA5MFWYpZW9yIFUP9V+gpPCrpsFKzLqkanGcf1XgsIhL yOtyfVzrLkSXMVq9JzCoYG61WQxOVLU01L7HJ2uEuWbHdcotWBdD1e3cA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:mime-version:content-type; s= default; bh=w1SLLpWmyeJE8If0dxNJbDdgbuw=; b=tNuYWGLxBOMwFZ2bwaS7 yXbGGJg2q57/sZVSVe9zvEWNmWxur4f/pss4OCJPKe/sY9zF37gEH7V/QcepgL2F qwuSPkxwo9os29WKrhuruYF6w37222ix/9FYJU7UdWbkriXyz4eNJmAI9oyWlgyf PrRI6+qjmpyMpeIsfUDbe2k= Received: (qmail 93524 invoked by alias); 23 Feb 2017 18:25:34 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 93496 invoked by uid 89); 23 Feb 2017 18:25:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=553, Hx-languages-length:2189 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 23 Feb 2017 18:25:32 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 42D47C054C32; Thu, 23 Feb 2017 18:25:32 +0000 (UTC) Received: from localhost (ovpn-116-91.ams2.redhat.com [10.36.116.91]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v1NIPVU0010612; Thu, 23 Feb 2017 13:25:31 -0500 Date: Thu, 23 Feb 2017 18:25:29 +0000 From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Cc: Lars Gullik =?iso-8859-1?Q?Bj=F8nnes?= Subject: [PATCH] Ensure includes Message-ID: <20170223182529.GT4602@redhat.com> MIME-Version: 1.0 Content-Disposition: inline X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.7.1 (2016-10-04) Lars noticed that didn't include as it's supposed to. I checked the other TS headers and they're OK. * include/experimental/iterator: Include . * testsuite/experimental/iterator/requirements.cc: Check for contents of . Tested powerpc64le-linux, committed to trunk. commit 42ee67b0131274b1c3405d6cab1d83d38dc17c55 Author: Jonathan Wakely Date: Thu Feb 23 17:48:27 2017 +0000 Ensure includes * include/experimental/iterator: Include . * testsuite/experimental/iterator/requirements.cc: Check for contents of . diff --git a/libstdc++-v3/include/experimental/iterator b/libstdc++-v3/include/experimental/iterator index e8ecb34..8a8395d 100644 --- a/libstdc++-v3/include/experimental/iterator +++ b/libstdc++-v3/include/experimental/iterator @@ -39,10 +39,9 @@ # include #else -#include +#include #include -#include -#include +#include namespace std _GLIBCXX_VISIBILITY(default) { diff --git a/libstdc++-v3/testsuite/experimental/iterator/requirements.cc b/libstdc++-v3/testsuite/experimental/iterator/requirements.cc index 8a8e79e..5fa5872 100644 --- a/libstdc++-v3/testsuite/experimental/iterator/requirements.cc +++ b/libstdc++-v3/testsuite/experimental/iterator/requirements.cc @@ -19,7 +19,7 @@ // This is a compile-only test with minimal includes #include -#include +#include // No guarantee that includes this! using namespace std::experimental; @@ -55,3 +55,13 @@ tester ic; tester ww; tester iw; #endif + +std::ostream& os(); + +// Ensure that contents of are defined by : +std::reverse_iterator ii; +std::move_iterator mi; +std::istream_iterator isi; +std::ostream_iterator osi(os()); +std::istreambuf_iterator isbi; +std::ostreambuf_iterator osbi(os());