220 24201 <CAFk2RUb7P++1if3G9ab09XggHi0p-s1PeKW8V_8rok=ohUTxLQ@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Ville Voutilainen <ville.voutilainen@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Proposal: Change the specified behavior when
 control flow reaches the end of non-void functions
Date: Fri, 5 Feb 2016 01:32:52 +0200
Lines: 31
Approved: news@gmane.org
Message-ID: <CAFk2RUb7P++1if3G9ab09XggHi0p-s1PeKW8V_8rok=ohUTxLQ@mail.gmail.com>
References: <5115b78c-8fb4-4c72-a278-f74c636f5217@isocpp.org>
	<2511401.bv6yOhHB5J@tjmaciei-mobl4>
	<CAJnLdOYZq4HH1SVYf_D_CmmN28LjAivY=8LM58t8kEWC5bw2dw@mail.gmail.com>
	<1851432.TiVlt5xrhH@tjmaciei-mobl4>
	<CAJnLdObDg=-saRLpYau-C4iO4oWDcwgZkcggBg0fjevUtOKRFw@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
X-Trace: ger.gmane.org 1454628778 30594 80.91.229.3 (4 Feb 2016 23:32:58 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 4 Feb 2016 23:32:58 +0000 (UTC)
To: "ISO C++ Standard - Future Proposals" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBC5JHI7A7ALRBJF7Z62QKGQEN33QKHY@isocpp.org Fri Feb 05 00:32:58 2016
Return-path: <std-proposals+bncBC5JHI7A7ALRBJF7Z62QKGQEN33QKHY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-io0-f198.google.com ([209.85.223.198])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC5JHI7A7ALRBJF7Z62QKGQEN33QKHY@isocpp.org>)
	id 1aRTOT-0004EI-IM
	for gclcip-std-proposals@m.gmane.org; Fri, 05 Feb 2016 00:32:57 +0100
Original-Received: by mail-io0-f198.google.com with SMTP id j13sf225441519ioe.0
        for <gclcip-std-proposals@m.gmane.org>; Thu, 04 Feb 2016 15:32:57 -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=Kl+q3UzQEzVC3uR3jrTK+EKCMB+o+xloLwQNDWTKKfE=;
        b=Qu1VBA2NFgpXxOVwpKHwybfmxi3tYghreg07C6kx/3Htc7NF5m1aKXTatFGMuk7zdA
         Ys3KOHgJsPlnFQG/26tbPQhbRz7VUv/ngK34GZv8fgrxWXdNEgSPJvQsYhG51L8qlxYR
         ig8UKPv7ZQlxdqwHU3ItvVUpef0/M9X8fJGk/PkMDs+aowu+gQt2TmYapswp2WyBHVOP
         Timp84La+jBKXBfMSdEjm1mRzLuBrkGj/68m1+WX3FaF7JIGuj9nFpNqhUbVPocFB2Zl
         Rj2zue8nk9eEvyiir99OMvNHTqUpK+Y5a32eGZZ+gr24g9+QAlcxQ7KpFbf/300UO8CO
         qx4Q==
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=Kl+q3UzQEzVC3uR3jrTK+EKCMB+o+xloLwQNDWTKKfE=;
        b=Z23CycNlycvUbdCuiXICWJeI1OB+DeZ3bHGztM8SfuHBW5TQCBLrHSjNOwtF9a0YV6
         HHRXeJxk03R9SR8zswiZUTvwZnsKkMPZIMKGAXjCKi7P0Yoty/GAitvj66cgXHk5aCEb
         3R/LjwHGbKLywIxB8K6EShxPzyJ0u16HA35ZCDzyV7nlOBODZA0LAmPRp900WZJsbJlg
         3j9ZcLlDVHsKH9aGD/xe54Be9Fn901cz06w7XBihnyXidUpFsVZhiKCo07C3zdY2IyWA
         jSO9wLEq/Vh8/c5Y6FrO/osC4wgGvPXq8eeQXiBnkHVe0Fm0MRQgjwOnduHRz5zxYtH9
         5Wxg==
X-Gm-Message-State: AG10YORx95IIcwV1VQzl1bENoKBYdsnPgmVhhAscn6jDtXkMRpYWm47L31mEOjSD0cTGnQ==
X-Received: by 10.50.56.109 with SMTP id z13mr11274504igp.7.1454628776536;
        Thu, 04 Feb 2016 15:32:56 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.140.32.137 with SMTP id h9ls1519649qgh.22.gmail; Thu, 04 Feb
 2016 15:32:52 -0800 (PST)
X-Received: by 10.31.54.207 with SMTP id d198mr7480650vka.119.1454628772406;
        Thu, 04 Feb 2016 15:32:52 -0800 (PST)
Original-Received: from mail-vk0-x230.google.com (mail-vk0-x230.google.com. [2607:f8b0:400c:c05::230])
        by mx.google.com with ESMTPS id f129si12816775vke.116.2016.02.04.15.32.52
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Thu, 04 Feb 2016 15:32:52 -0800 (PST)
Received-SPF: pass (google.com: domain of ville.voutilainen@gmail.com designates 2607:f8b0:400c:c05::230 as permitted sender) client-ip=2607:f8b0:400c:c05::230;
Original-Received: by mail-vk0-x230.google.com with SMTP id e185so46713933vkb.1
        for <std-proposals@isocpp.org>; Thu, 04 Feb 2016 15:32:52 -0800 (PST)
X-Received: by 10.31.16.37 with SMTP id g37mr7040719vki.97.1454628772170; Thu,
 04 Feb 2016 15:32:52 -0800 (PST)
Original-Received: by 10.103.112.131 with HTTP; Thu, 4 Feb 2016 15:32:52 -0800 (PST)
In-Reply-To: <CAJnLdObDg=-saRLpYau-C4iO4oWDcwgZkcggBg0fjevUtOKRFw@mail.gmail.com>
X-Original-Sender: ville.voutilainen@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of ville.voutilainen@gmail.com designates 2607:f8b0:400c:c05::230 as
 permitted sender) smtp.mailfrom=ville.voutilainen@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: <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:24201
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/24201>

On 5 February 2016 at 01:25, 'Edward Catmur' via ISO C++ Standard -
Future Proposals >> > > The information loss is not a requirement. The
runtime could print the
>> > > reason
>> > > for termination before termination.
>> >
>> > How? std::terminate_handler is specified as void(*)() so there's nowhere
>> > to
>> > pass in the reason. Existing terminate_handlers look at
>> > std::current_exception, so I suppose you could smuggle it in there, but
>> > then you might as well throw that exception directly.
>>
>> Because the compiler does not need to directly call std::terminate. It can
>> call a function of its own that prints the information, then calls
>> std::terminate.
> Thereby requiring that all C++ programs have a console attached, and denying
> them control over what is output to that console?


Doing that does not in any way require a console to be attached, and various
tools have been outputting such diagnostics into the standard error output many
years. I don't quite grasp what you think is the problem here.

-- 

--- 
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 https://groups.google.com/a/isocpp.org/group/std-proposals/.

.
