220 22667 <CADqyrC2duU3tAwHG6s7rCYzXso5JZPLLn9mTK2ib1cSbvH1zPw@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Jonas Persson <l.j.persson@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Unreachable attribute.
Date: Mon, 16 Nov 2015 16:46:56 +0100
Lines: 69
Approved: news@gmane.org
Message-ID: <CADqyrC2duU3tAwHG6s7rCYzXso5JZPLLn9mTK2ib1cSbvH1zPw@mail.gmail.com>
References: <b0c0e9f0-444a-4237-9fef-6cacf00127a3@isocpp.org>
	<CAOHCbivAm7dWXhyMh71RaJw+TCXcQ8k8M1xBYTA8K6xFye=OYA@mail.gmail.com>
	<CADqyrC2BQk3BqffMPf-ky7Pwjo8O-iu0R0AYqx7LexhKHO6PJw@mail.gmail.com>
	<305866a5-c79d-49f7-ad82-0e359039a5b4@isocpp.org>
	<CADqyrC0DfduguMSFGFE665gtcC1p-cHhYvVr0c7d_EEgVP+Fmg@mail.gmail.com>
	<CAJnLdOaXDL-137kossOK-PtUKodCt7JVX-zVOoVWjKd_9EgE7g@mail.gmail.com>
	<CADqyrC1991G4T0zBzoWg2KHN0X-2kchSXYSrGXX-HbhA+C0wLA@mail.gmail.com>
	<CAJnLdOa8aoJPW_=+NuzNJWcJquKrKHGe-wW2nf5Lwg+_V=9OCQ@mail.gmail.com>
	<CADqyrC1e-8WHWJdtcjjwRE06QZd9gwdRN7DiOeewPjJP0ptz9A@mail.gmail.com>
	<CAJnLdObWcE0acY4ch9P9eFVKWxQ-ST-8g+xhmYbR70B10C6A9A@mail.gmail.com>
	<CADqyrC3_i1tLng=s2jtzmQw6uwOD-=RBQjvM_MOL-05EPA=Ggg@mail.gmail.com>
	<CAJnLdOZugw9krc23U34NWCDc5GKBoBRgHxrL8eLBYwiTD77PWQ@mail.gmail.com>
	<f25d422c-3863-4d86-81fc-a663bde0e357@isocpp.org>
	<2e5eb31c-cb31-4ad0-b901-ed0810e4ac2a@isocpp.org>
	<CADqyrC2wd4JFDh9wOyBPK2bhKwsWOJt09Q16AhF0hge09RPpAQ@mail.gmail.com>
	<564690A9.8040004@gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=001a1145aa8caa790d0524aa5155
X-Trace: ger.gmane.org 1447688831 5489 80.91.229.3 (16 Nov 2015 15:47:11 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Mon, 16 Nov 2015 15:47:11 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDLJBMEUU4NBB4PUU6ZAKGQEZBRAGDI@isocpp.org Mon Nov 16 16:47:02 2015
Return-path: <std-proposals+bncBDLJBMEUU4NBB4PUU6ZAKGQEZBRAGDI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-lb0-f200.google.com ([209.85.217.200])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDLJBMEUU4NBB4PUU6ZAKGQEZBRAGDI@isocpp.org>)
	id 1ZyLzf-00039y-KX
	for gclcip-std-proposals@m.gmane.org; Mon, 16 Nov 2015 16:46:59 +0100
Original-Received: by lbbpy8 with SMTP id py8sf33041185lbb.0
        for <gclcip-std-proposals@m.gmane.org>; Mon, 16 Nov 2015 07:46:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp_org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :content-type: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=M74qWId4qgNKK5qxX80fVNXqZTQ79apDNuUZKbGHEuw=;
        b=kVHzQMtRcJaYQJfeuQVWCC9YqRrRL5qIejW2m4HV11HwL7qn/Rbko/U1voLKtnnmz6
         +voJ9w9jn2Wre2iLfDnyUq4Or1xo6/0FlcRNenbEl4NmlC3kS9jz1f+zhVpydJUZbjDh
         hV2H1rk4ldKsmGcKHYibC9SNRH/tAs4qbSIBv0yxJwxvU8QBBqaXZZ1+LJRV8JwgpKQT
         CiemIlnU+lmI85bAgapIzCTQFUSvj01pVB7OioR3FV3UWrwQW5nx+WIZyp849mUHWmES
         1XIDJIAnNf0wZRVx5BKqo1MHxrfjVAAkt6K/wz57KEcuKULb6BQPbvgDQYdEqbtjUGgp
         nMLQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:in-reply-to:references:date
         :message-id:subject:from:to:content-type: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=M74qWId4qgNKK5qxX80fVNXqZTQ79apDNuUZKbGHEuw=;
        b=ioKuqNUVODp3GCqyPBCT/Sc6ndN+hp75M1PDEItdCI4U+g3vbL+iHlDZBHbOKu6l2E
         n60wD2eoE5rJMMnJ/GhZwmJkZIUMj+kREh3R4CR4iTyi0znikhee8lb95sgGukuZ4FHY
         7vDpMgWL1LXRjUBhnN9UDauSE/CCPo0sH5AKjOPH1Bw64lWpP6FQy1M0+jc5UOtia4Hp
         axsnrDoXcUlw3q0N/tkMmnhKP5bAg8Zm4H9X1FOYPTUHWjardLpmn4o8brYRXpiK400d
         Ka92eQdJ1iIbikXxjtSSRD5zejDoVBUUxCzSg5vx8hdi8A4WBeUnJ/n7dxVAfYBpSYzx
         NMWg==
X-Gm-Message-State: ALoCoQnNkR7nqZh5M7XAa1B19hfnX9ygtvnd+YbqUD05k+puvdwaWKpMXLWMF2pUF3XpMpmoKiJ7
X-Received: by 10.194.246.129 with SMTP id xw1mr5344328wjc.6.1447688818921;
        Mon, 16 Nov 2015 07:46:58 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.28.136.143 with SMTP id k137ls698290wmd.28.canary; Mon, 16 Nov
 2015 07:46:57 -0800 (PST)
X-Received: by 10.28.194.135 with SMTP id s129mr17554390wmf.38.1447688817141;
        Mon, 16 Nov 2015 07:46:57 -0800 (PST)
Original-Received: from mail-wm0-x234.google.com (mail-wm0-x234.google.com. [2a00:1450:400c:c09::234])
        by mx.google.com with ESMTPS id ot8si46677905wjc.163.2015.11.16.07.46.57
        for <std-proposals@isocpp.org>
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Mon, 16 Nov 2015 07:46:57 -0800 (PST)
Received-SPF: pass (google.com: domain of l.j.persson@gmail.com designates 2a00:1450:400c:c09::234 as permitted sender) client-ip=2a00:1450:400c:c09::234;
Original-Received: by wmww144 with SMTP id w144so115972869wmw.1
        for <std-proposals@isocpp.org>; Mon, 16 Nov 2015 07:46:57 -0800 (PST)
X-Received: by 10.28.93.70 with SMTP id r67mr18418262wmb.16.1447688816717;
 Mon, 16 Nov 2015 07:46:56 -0800 (PST)
Original-Received: by 10.28.157.148 with HTTP; Mon, 16 Nov 2015 07:46:56 -0800 (PST)
In-Reply-To: <564690A9.8040004@gmail.com>
X-Original-Sender: l.j.persson@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of l.j.persson@gmail.com designates 2a00:1450:400c:c09::234 as
 permitted sender) smtp.mailfrom=l.j.persson@gmail.com;       dkim=pass
 header.i=@gmail.com;       dmarc=pass (p=NONE dis=NONE) header.from=gmail.com
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: <http://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://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>,
 <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:22667
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/22667>

--001a1145aa8caa790d0524aa5155
Content-Type: text/plain; charset=UTF-8

On Sat, Nov 14, 2015 at 2:38 AM, Miro Knejp <miro.knejp@gmail.com> wrote:
>
> That already happens, though it is far from "random". The compiler will
> happily remove code that depends on UB at higher optimization levels.
> Whether you expected it to run or not, or whether that annoys you, it does
> not care.
>

The issue was not if UB is allowed to remove code or not. I have no problem
with that. The issue was that a precondition validate should be ill-formed
rather that UB.

  / Jonas

-- 

--- 
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.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

--001a1145aa8caa790d0524aa5155
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Sat, Nov 14, 2015 at 2:38 AM, Miro Knejp <span dir=3D"ltr">&lt;<a hr=
ef=3D"mailto:miro.knejp@gmail.com" target=3D"_blank">miro.knejp@gmail.com</=
a>&gt;</span> wrote:<blockquote class=3D"gmail_quote" style=3D"margin:0px 0=
px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);borde=
r-left-style:solid;padding-left:1ex"><div bgcolor=3D"#FFFFFF" text=3D"#0000=
00"><span class=3D""><blockquote type=3D"cite"><div dir=3D"ltr"><div class=
=3D"gmail_extra"><div class=3D"gmail_quote">
          </div>
        </div>
      </div>
    </blockquote></span>
    That already happens, though it is far from &quot;random&quot;. The com=
piler
    will happily remove code that depends on UB at higher optimization
    levels. Whether you expected it to run or not, or whether that
    annoys you, it does not care.<br></div></blockquote><div><br></div><div=
>The issue was not if UB is allowed to remove code or not. I have no proble=
m with that. The issue was that a precondition validate should be ill-forme=
d rather that UB.</div><div><br></div><div>=C2=A0 / Jonas</div><div>=C2=A0<=
/div></div></div></div>

<p></p>

-- <br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

--001a1145aa8caa790d0524aa5155--

.
