From patchwork Thu Oct 2 08:08:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ed Smith-Rowland <3dw4rd@verizon.net> X-Patchwork-Id: 395834 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 D6580140161 for ; Thu, 2 Oct 2014 18:08:32 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type; q=dns; s=default; b=ZS155Ux4OfLKJNOiJ YDmBL/a++fFmqkQ6qMBQKh6KlVrUbDO76XcZpnKUGddmYNN8/lkYHMV8Q/QiB28E 1vD9LH/ofo3wbGMiK5H0LKFEx2fpDowGeZYtRJVaZfI43T7cLndQaRL/tD/tL/AD BgCiQw0Zfwbh2IKjJ8GOtKGzBc= 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 :message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type; s=default; bh=6tK2YitX/nm/upnfOMQm34A L790=; b=fcEiJ+pTwI1uTzht+NIWVZgF2DpEZwAwJezTfpkcple8anSl0ryG1W8 atM39mr3ksNXTEvHCijqj1K3SNp4DY/mZwGLvQyVU8TG/OI8UHJ8fnGU9EK0elho BflQl1eFYQzZOO8oyPxKRxOnmwpCluWojqTnx4IthdAQQbjD6gPQ= Received: (qmail 32259 invoked by alias); 2 Oct 2014 08:08:24 -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 32237 invoked by uid 89); 2 Oct 2014 08:08:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: vms173001pub.verizon.net Received: from vms173001pub.verizon.net (HELO vms173001pub.verizon.net) (206.46.173.1) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 02 Oct 2014 08:08:20 +0000 Received: from [192.168.1.4] ([unknown] [173.69.187.187]) by vms173001.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0NCT000M559FCN40@vms173001.mailsrvcs.net>; Thu, 02 Oct 2014 03:08:04 -0500 (CDT) Message-id: <542D07E3.3040207@verizon.net> Date: Thu, 02 Oct 2014 04:08:03 -0400 From: Ed Smith-Rowland <3dw4rd@verizon.net> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-version: 1.0 To: Jonathan Wakely Cc: gcc-patches , Jason Merrill , "libstdc++@gcc.gnu.org" Subject: Re: [PATCH C++] - SD-6 Implementation Part 3 - . References: <54052162.6020801@verizon.net> <20140902092402.GR22778@redhat.com> <20141001152848.GV4197@redhat.com> <542CF5F0.6050202@verizon.net> In-reply-to: <542CF5F0.6050202@verizon.net> Content-type: multipart/mixed; boundary=------------010302050007050603010207 On 10/02/2014 02:51 AM, Ed Smith-Rowland wrote: > On 10/01/2014 11:28 AM, Jonathan Wakely wrote: >> On 02/09/14 10:24 +0100, Jonathan Wakely wrote: >>> On 01/09/14 21:46 -0400, Ed Smith-Rowland wrote: >>>> Index: include/bits/stl_function.h >>>> =================================================================== >>>> --- include/bits/stl_function.h (revision 214680) >>>> +++ include/bits/stl_function.h (working copy) >>>> @@ -217,6 +217,10 @@ >>>> }; >>>> >>>> #if __cplusplus > 201103L >>>> + >>>> +#define __cpp_lib_transparent_operators 201210 >>>> +#define __cpp_lib_generic_associative_lookup 201304 >>> >>> The generic associative lookup feature is not supported. >>> >>>> Index: testsuite/experimental/feat-lib-fund.cc >>>> =================================================================== >>>> --- testsuite/experimental/feat-lib-fund.cc (revision 0) >>>> +++ testsuite/experimental/feat-lib-fund.cc (working copy) >>>> @@ -0,0 +1,25 @@ >>>> +// { dg-options "-std=gnu++14" } >>>> +// { dg-do compile } >>>> + >>>> +#include >>>> +#include >>>> + >>>> +#if !__has_include() >>>> +# error "" >>>> +#endif >>>> + >>>> +//#if !__has_include() >>>> +//# error "" >>>> +//#endif >>>> + >>>> +//#if !__has_include() >>>> +//# error "" >>>> +//#endif >>> >>> This can be uncommented, is available. >>> >>> OK with those changes. >> >> Ed, the commit at http://gcc.gnu.org/r215752 doesn't have the >> corrections I asked for above and causes a number of test failures, >> could you look into it please? >> >> > OK, > > Here is the patch. > > Built and tested on x86_64-linux. > > OK? > > Ed > > FWIW, I remember a svn tree corruption while getting this patch ready. > I should have retested everything in the new tree. > Sorry everyone! > Here is a front-end test patch. Built and tested on x86_64-linux. OK? Ed 2014-10-02 Edward Smith-Rowland <3dw4rd@verizon.net> * g++.dg/cpp1y/feat-cxx98-neg.C: Fix double negative thinko and add many more tests. Index: g++.dg/cpp1y/feat-cxx98-neg.C =================================================================== --- g++.dg/cpp1y/feat-cxx98-neg.C (revision 215793) +++ g++.dg/cpp1y/feat-cxx98-neg.C (working copy) @@ -1,6 +1,99 @@ // { dg-do compile { target c++98_only } } // { dg-options "-ansi" } -#ifdef __cpp_runtime_arrays +#ifndef __cpp_runtime_arrays # error "__cpp_runtime_arrays" // { dg-error "error" } #endif + +#ifndef __cpp_unicode_characters +# error "__cpp_unicode_characters" // { dg-error "error" } +#endif + +#ifndef __cpp_raw_strings +# error "__cpp_raw_strings" // { dg-error "error" } +#endif + +#ifndef __cpp_unicode_literals +# error "__cpp_unicode_literals" // { dg-error "error" } +#endif + +#ifndef __cpp_user_defined_literals +# error "__cpp_user_defined_literals" // { dg-error "error" } +#endif + +#ifndef __cpp_lambdas +# error "__cpp_lambdas" // { dg-error "error" } +#endif + +#ifndef __cpp_constexpr +# error "__cpp_constexpr" // { dg-error "error" } +#endif + +#ifndef __cpp_static_assert +# error "__cpp_static_assert" // { dg-error "error" } +#endif + +#ifndef __cpp_decltype +# error "__cpp_decltype" // { dg-error "error" } +#endif + +#ifndef __cpp_attributes +# error "__cpp_attributes" // { dg-error "error" } +#endif + +#ifndef __cpp_rvalue_reference +# error "__cpp_rvalue_reference" // { dg-error "error" } +#endif + +#ifndef __cpp_variadic_templates +# error "__cpp_variadic_templates" // { dg-error "error" } +#endif + +#ifndef __cpp_alias_templates +# error "__cpp_alias_templates" // { dg-error "error" } +#endif + +// C++14 + +// C++98 gets binary literals. +//#ifndef __cpp_binary_literals +//# error "__cpp_binary_literals" +//#endif + +#ifndef __cpp_init_captures +# error "__cpp_init_captures" // { dg-error "error" } +#endif + +#ifndef __cpp_generic_lambdas +# error "__cpp_generic_lambdas" // { dg-error "error" } +#endif + +#ifndef __cpp_decltype_auto +# error "__cpp_decltype_auto" // { dg-error "error" } +#endif + +#ifndef __cpp_return_type_deduction +# error "__cpp_return_type_deduction" // { dg-error "error" } +#endif + +// Aggregate initializers not in yet. +//#ifdef __cpp_aggregate_nsdmi +//# error "__cpp_aggregate_nsdmi" +//#endif + +#ifndef __cpp_variable_templates +# error "__cpp_variable_templates" // { dg-error "error" } +#endif + +#ifndef __cpp_digit_separators +# error "__cpp_digit_separators" // { dg-error "error" } +#endif + +#ifndef __cpp_attribute_deprecated +# error "__cpp_attribute_deprecated" // { dg-error "error" } +#endif + +// Sized deallocation not in yet. +//#ifdef __cpp_sized_deallocation +//# error "__cpp_sized_deallocation" +//#endif