From patchwork Fri Apr 26 11:01:02 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Paolo Carlini X-Patchwork-Id: 239803 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 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 287652C010E for ; Fri, 26 Apr 2013 21:01:16 +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=boXNzyNgIYz4zFW0v pR70ZRzhexNATkmItBAm2Fl+W3vn0EKWPTstgD3LeZU4ccQhqj2SH+fyJ8h6ILac l0SrVpqrYKqFkX/gCWnMpNfEz2/vMFH1Fics9Ke+Q2xAMuE8dS2KO35ubj3CNCai PiW6A2psJERV6OU12FOq+JjniY= 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=105RL2qKDQmy0q8FwzMDCJZ hNfU=; b=TXOF5ca87q65VC6h6XWPlfQ/GVWcLZvjBhejAFb0AenzcVD1V643LOo sYscpDwi/jwNnWO7bC8kUeOaqjwLnhUeckUN71tJr23Qbb6HFeJmt1kdSoJ08DYY /W2UvOLDIiY9PS77aGXPayiQ1HHdOo/THQZBKO2lViodfO6E0KXE= Received: (qmail 29007 invoked by alias); 26 Apr 2013 11:01:10 -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 28997 invoked by uid 89); 26 Apr 2013 11:01:10 -0000 X-Spam-SWARE-Status: No, score=-6.1 required=5.0 tests=AWL, BAYES_00, KHOP_THREADED, RCVD_IN_DNSWL_MED, RCVD_IN_HOSTKARMA_NO, RCVD_IN_HOSTKARMA_YE, RP_MATCHES_RCVD, SPF_PASS, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from aserp1040.oracle.com (HELO aserp1040.oracle.com) (141.146.126.69) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 26 Apr 2013 11:01:09 +0000 Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r3QB16Jb003629 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 26 Apr 2013 11:01:07 GMT Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r3QB16mw006738 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 26 Apr 2013 11:01:06 GMT Received: from abhmt111.oracle.com (abhmt111.oracle.com [141.146.116.63]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r3QB15WV014528; Fri, 26 Apr 2013 11:01:05 GMT Received: from poldo4.casa (/79.52.234.115) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 26 Apr 2013 04:01:05 -0700 Message-ID: <517A5E6E.4090803@oracle.com> Date: Fri, 26 Apr 2013 13:01:02 +0200 From: Paolo Carlini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Daniel_Kr=FCgler?= CC: Jakub Jelinek , Jason Merrill , "gcc-patches@gcc.gnu.org" , Gabriel Dos Reis , Jonathan Wakely Subject: Re: [C++ Patch] Define __cplusplus == 201300L for -std=c++1y References: <51781E19.9030802@oracle.com> <51782286.7020303@redhat.com> <517A57C8.9070309@oracle.com> <20130426104227.GO28963@tucnak.redhat.com> <517A5C2C.9090305@oracle.com> In-Reply-To: X-Virus-Found: No Hi, On 04/26/2013 12:57 PM, Daniel Krügler wrote: > Jonathan recently submitted an LWG issue for this (not yet part of the > available list). I'm in the process to add the new issue within the > following days. He's essentially suggesting to remove get() from C++14. Thanks Daniel. Then, it seems safe to do in v3 the same as , to enable testing -std=c++1y. Do you have already a DR # which I can write in a comment? Thanks! Paolo. ////////////////////// Index: include/c_global/cstdio =================================================================== --- include/c_global/cstdio (revision 198333) +++ include/c_global/cstdio (working copy) @@ -69,7 +69,9 @@ #undef ftell #undef fwrite #undef getc -#undef gets +#if __cplusplus <= 201103L +# undef gets +#endif #undef perror #undef printf #undef putc @@ -116,7 +118,9 @@ using ::fwrite; using ::getc; using ::getchar; +#if __cplusplus <= 201103L using ::gets; +#endif using ::perror; using ::printf; using ::putc; Index: include/c_std/cstdio =================================================================== --- include/c_std/cstdio (revision 198333) +++ include/c_std/cstdio (working copy) @@ -70,7 +70,9 @@ #undef fwrite #undef getc #undef getchar -#undef gets +#if __cplusplus <= 201103L +# undef gets +#endif #undef perror #undef printf #undef putc @@ -117,7 +119,9 @@ using ::fwrite; using ::getc; using ::getchar; +#if __cplusplus <= 201103L using ::gets; +#endif using ::perror; using ::printf; using ::putc;