220 36469 <1823126.nxGvHgdJMA@tjmaciei-mobl1> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Treating local variables as rvalues in return statements
Date: Wed, 03 Jan 2018 09:33:21 -0200
Lines: 18
Approved: news@gmane.org
Message-ID: <1823126.nxGvHgdJMA@tjmaciei-mobl1>
References: <4ff5fe2d-0945-491f-9888-479b8e866ace@isocpp.org> <d5b5434c-6300-4f82-92b4-a439696d6020@isocpp.org> <55bb7162-834a-4ba4-bd68-915470842430@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: blaine.gmane.org 1514979089 24980 195.159.176.226 (3 Jan 2018 11:31:29 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 3 Jan 2018 11:31:29 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRBBP7WLJAKGQEDGME5HI@isocpp.org Wed Jan 03 12:31:25 2018
Return-path: <std-proposals+bncBCB4TK757YBRBBP7WLJAKGQEDGME5HI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qk0-f200.google.com ([209.85.220.200])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCB4TK757YBRBBP7WLJAKGQEDGME5HI@isocpp.org>)
	id 1eWhGV-0006B1-W6
	for gclcip-std-proposals@m.gmane.org; Wed, 03 Jan 2018 12:31:24 +0100
Original-Received: by mail-qk0-f200.google.com with SMTP id x197sf597584qka.18
        for <gclcip-std-proposals@m.gmane.org>; Wed, 03 Jan 2018 03:33:27 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1514979207; cv=pass;
        d=google.com; s=arc-20160816;
        b=zjUQV+oYZ/LlTJwtfxq1Nti+EER+zrMFgye8LmlxcEEn6+Pnb8II+w/+zX0N/IjxK6
         iOgEH+sQ0vtMXDuRhxfU67VcG29DteH7X9MkpqeCS0YtFKKuDTqiGdMdC6BRtWG1K5HX
         +O7o1Gqo1zzQTEQe0d//F5VVeQZeTYv8+X3AU4RBMMfBl5w+ZLuBqsdOTvGxKCvsD/Ka
         cVTrV+cMq/ZBXB/RgB/Q30T8PVbo+Y3xl7Ph+n8anLhoi3MYxz4RbLNob4P2ov2v8Zht
         Cw1P1oTfSAjGg/0OsHvn2CV/cqBhd6kpegPsSo33P7tumO32khxPDnMt5nqAPv9fvnDl
         c7fA==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:mime-version:references
         :in-reply-to:message-id:date:subject:to:from
         :arc-authentication-results:arc-message-signature:dkim-signature
         :arc-authentication-results;
        bh=M9PTrictl1LOJ5GNENho7po+XhY8MVtNPkTYhy5MGAM=;
        b=r01cKbW9MeNgJm4AwbxEvsNnHCgWPo65fZH4b6NgTRrYN1yYIubTazIg3maGyUCzru
         m/Jx+gbNgnhcgxyTZyymwpsqU+T2ejjePvXFJkFlJ8CCQfkdn7YId/MJQ0ZVvcRXvDya
         GYI5fMUJKbkYYj5wHAYfaDYmncQWDw/0elR8nKox7mwz2m3eIreJ0XkElYhTM3aSnAbd
         9DjK1Ih6fHH7vcYqgnHWp4etg8gWZE8Fl0fTrHSAd6qKqzD8qD7AZ6vUsC0yZrulpzoc
         BXsmdbI7LjAJgZo2tPIsVfJ58TFbrfzf2J8QirO4p1CqVLMoSsFfKze7xjz4b70wyysp
         SbcQ==
ARC-Authentication-Results: i=2; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 2001:19f0:5:2221::1:3 as permitted sender) smtp.mailfrom=thiago@macieira.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=from:to:subject:date:message-id:in-reply-to:references:mime-version
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=M9PTrictl1LOJ5GNENho7po+XhY8MVtNPkTYhy5MGAM=;
        b=xYWqs3RcC75lq0ziyTc7zaZ70KrCdUlGv8V5wfFV0qiMFcgx+vxLgT/S5NrsIF9ERb
         DpqNjp0By8pUiNi4d8yuc2a/ytBDIuD5wdY0OVTyAK3oYkgUH2dhiwQFWitm6dzEuNWF
         MaBIrCz+qFQ0sytp8MI9QqNJpwvsXTPK/P/uyocI9Ntf+/N8evZAGVZXzOQSM/bfBA9A
         dJSP6YzTw0LpB2znGweCrkO8LKleqeI9nAz4G2fP8FW+/WWxJDRIqZX1yV/3ag/eExN8
         ZMFF99i1Xi0VpJy0uOR05lp20czX9fgR5L+zqG0/I+H+BcuDUMp+rsSF8oiGhSGJFCid
         dZWQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to
         :references:mime-version:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=M9PTrictl1LOJ5GNENho7po+XhY8MVtNPkTYhy5MGAM=;
        b=rlOMnv6DDs5oINEWhJVB/S6IvsyA7JuPjtZKww8xfPG+px1zipTfmbZb4K9DPkHCcA
         +otdaVa1mS6JobY0mvkJiLZlBSIEJ9OrIJVhyuYzTenMiyP4vNycPchtdpk9Be7HnCYY
         ucpnOyAY2Ai4jpI+3B2faVuy4vb4cluLXPBNUcV0kqu27pHx9rFPHmktvxCPuFp6D8CL
         aKxUdoDqVudcBSHt+coNS52yOVOi2XMpitiZx36VWfphqwxcPDvp4AF3M8jGlvOB3RHf
         0Mpe7p+w82btJC9T/n1JKmHyqFLZbBXtpdy8lVhwoSSWpjWPAf3vzHwQ8uNE7gAcfBMu
         bA9A==
X-Gm-Message-State: AKGB3mJP7KbMFH/qN6dWlbLIjkJT3+CQOJJMTM0VzlbJpn2N+RKG8FJ3
	A1w3BTkyE/ZWw3RXcU8yocAP1g==
X-Google-Smtp-Source: ACJfBov07vfX8RJX+9MqbF1XLNl4Gqkz2DMPj8awDgHBqLJQAlZrADCkts38NrZ8MOemb7bK2Dha0w==
X-Received: by 10.55.92.130 with SMTP id q124mr693813qkb.17.1514979207079;
        Wed, 03 Jan 2018 03:33:27 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.55.201.87 with SMTP id q84ls2363276qki.10.gmail; Wed, 03 Jan
 2018 03:33:25 -0800 (PST)
X-Received: by 10.200.55.185 with SMTP id d54mr1350151qtc.105.1514979205617;
        Wed, 03 Jan 2018 03:33:25 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1514979205; cv=none;
        d=google.com; s=arc-20160816;
        b=f6l0Cg3/hTM0cB3L7HdQ5cCEyAMRUogaWnITVijQ1MCjix9ofken2dMOUxg1SDB1KL
         wvFNK/TZEzLNvkNYvi5+Gf0wFwnW8RRaWrEDJwz7g7ZHx6C7bvJJeMmShM+gQV/cjY+l
         boteJenk1KoixTnhHvvN+5J3z3yIt0+tPkgqxfpt+PxhR6tjNscas2OA32+iCqGVkeS9
         eFpVtzrl+wppOsNaMX0B3rqi2nDoeHywcsMyNVrjcq/+fe2kjsSdtVu9KX0AhEaAxQ9O
         KNX1GJwdZGb7k2wu8K/uYe/DqkH0tV5ewNmFUYwAjPLcf8So1gAEO9ZlbBwv5BTJHwtt
         a0cg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:to:from:arc-authentication-results;
        bh=5L/Wxk4xnLxidHOegUAIus0HiMrdI7/6XTFGke6nyjM=;
        b=YI2358VeDGX0wx05Y7fd9jKmWWMSrXa62jmHes/FNVBUtDjUryWtaYGNYL8Jptvt18
         MR3hcgv5zsgxo4VPvxMnZ8zLBYNVBxPaYEJ7QOWxlYs26YOIMW3s6cqc/xvPw5AkEc6G
         kHJBehdh1t0gCYeiHD8ZThkZeCbGtjRoEbgTLgsREdQiIBi6/fWwDsDr445S9udjfoTQ
         VFjRDexbUwAHuivbbahBf5nS2TP4z8KqT8e+obth4VFWWQxMoiI0KgHXqLJqSF3gUtfy
         DKImyaEjYvT5txDGSP8Du27LueLpuF9oepxQj/2Pva3nlMB3fn2DIpA/Sg7U6eAcMPg6
         Patw==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 2001:19f0:5:2221::1:3 as permitted sender) smtp.mailfrom=thiago@macieira.org
Original-Received: from smtp.macieira.info (smtp.macieira.info. [2001:19f0:5:2221::1:3])
        by mx.google.com with ESMTPS id t22si442420qtt.121.2018.01.03.03.33.25
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 03 Jan 2018 03:33:25 -0800 (PST)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 2001:19f0:5:2221::1:3 as permitted sender) client-ip=2001:19f0:5:2221::1:3;
Original-Received: from tjmaciei-mobl1.localnet (unknown [191.254.125.70])
	by smtp.macieira.info (Postfix) with ESMTPSA id 0FA9B5853
	for <std-proposals@isocpp.org>; Wed,  3 Jan 2018 03:33:24 -0800 (PST)
In-Reply-To: <55bb7162-834a-4ba4-bd68-915470842430@isocpp.org>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 2001:19f0:5:2221::1:3 as permitted
 sender) smtp.mailfrom=thiago@macieira.org
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: std-proposals@isocpp.org
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:36469
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/36469>

On Wednesday, 3 January 2018 08:51:05 -02 olafvdspek@gmail.com wrote:
> Wouldn't the idea be to do the analysis and only consider it a rvalue if
> it's NOT accessed later in the statement / function?

And its address has never been taken, which also means it must never have been 
passed by reference either. That limits the usefulness too much to make it a 
feature.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center

-- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/1823126.nxGvHgdJMA%40tjmaciei-mobl1.

.
