From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 38454 invoked by alias); 14 Jan 2019 20:07:10 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 38217 invoked by uid 89); 14 Jan 2019 20:07:10 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=claim X-HELO: mail-qk1-f181.google.com Received: from mail-qk1-f181.google.com (HELO mail-qk1-f181.google.com) (209.85.222.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 14 Jan 2019 20:07:09 +0000 Received: by mail-qk1-f181.google.com with SMTP id y16so197639qki.7 for ; Mon, 14 Jan 2019 12:07:08 -0800 (PST) Return-Path: Received: from [192.168.1.115] (209-6-216-142.s141.c3-0.smr-cbr1.sbo-smr.ma.cable.rcncustomer.com. [209.6.216.142]) by smtp.gmail.com with ESMTPSA id u50sm55385793qta.23.2019.01.14.12.07.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Jan 2019 12:07:06 -0800 (PST) Subject: Re: [C++ PATCH] Add __cpp_guaranteed_copy_elision and __cpp_nontype_template_parameter_auto To: Jakub Jelinek Cc: gcc-patches@gcc.gnu.org References: <20190112133651.GU30353@tucnak> From: Jason Merrill Message-ID: <2a516439-5ba8-88f7-a21b-2029ce3e0d8a@redhat.com> Date: Mon, 14 Jan 2019 20:07:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 In-Reply-To: <20190112133651.GU30353@tucnak> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-01/txt/msg00798.txt.bz2 On 1/12/19 8:36 AM, Jakub Jelinek wrote: > Hi! > > So, from what I can understand, __cpp_guaranteed_copy_elision > is a C++17 P0135R1 feature test macro for a feature we claim to support, > and __cpp_nontype_template_parameter_auto is a new name for the > __cpp_template_auto macro (which doesn't appear anymore in the SD-6 lists, > but clang++ keeps it for backwards compatibility too). > > Tested on x86_64-linux, ok for trunk? > > 2019-01-12 Jakub Jelinek > > * c-cppbuiltin.c (c_cpp_builtin): Define __cpp_guaranteed_copy_elision > and __cpp_nontype_template_parameter_auto. Add a comment that > __cpp_template_auto is deprecated. > > * g++.dg/cpp1z/feat-cxx1z.C: Add tests for > __cpp_guaranteed_copy_elision and __cpp_nontype_template_parameter_auto > feature test macros. > * g++.dg/cpp2a/feat-cxx2a.C: Likewise. OK. Jason