Groups | Search | Server Info | Login | Register


Groups > comp.lang.c++.moderated > #7397

C++ exceptions are broken.

Path csiph.com!feeder.erje.net!2.us.feeder.erje.net!news.ripco.com!news.glorb.com!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!Xl.tags.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date Tue, 08 Mar 2016 06:40:02 -0600
Return-Path <cppmods@glengoyne.dreamhost.com>
Sender lang-cpp-request@vandevoorde.com
Approved c.l.c.m@bazarov.com
Message-ID <wuCdnSxusZPATkDLnZ2dnUU7-VlQAAAA@giganews.com> (permalink)
Newsgroups comp.lang.c++, comp.lang.c++.moderated
From Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>
Subject C++ exceptions are broken.
Organization unknown
Content-Type text/plain; charset=utf-8; format=flowed
X-Original-Date Mon, 7 Mar 2016 19:15:41 +0000
X-Submission-Address lang-cpp-submit@vandevoorde.com
Date Tue, 8 Mar 2016 06:31:12 CST
Lines 18
X-Usenet-Provider http://www.giganews.com
X-Trace sv3-UQFuaHfRLKsnccNChIdh9kc9QB7iycsHjdzUmobiT0hbuy7OEe2HVEiTaNrPoZ0g5CNSSQoRyoEaQCF!hV2t0q8IiBbB42DXwcMHN70llXsSS4aD/Rdi++ZvVUkrxTKFn0pA7ag2I0VFFmTHeDnB2vpcEzGN
X-Complaints-To abuse@giganews.com
X-DMCA-Notifications http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
X-Original-Bytes 1697
X-Received-Bytes 1809
X-Received-Body-CRC 3671070713
Xref csiph.com comp.lang.c++:41474 comp.lang.c++.moderated:7397

Cross-posted to 2 groups.

Show key headers only | View raw


C++ exceptions are broken.

As it currently stands a more serious std::logic_error exception can be 
downgraded into a less serious std::runtime_error exception if an 
exception is thrown whilst evaluating the throw expression.  This is a 
nonsense.

Fix: if an exception is thrown whilst evaluating a throw expression then 
std::terminate() is called.

/Flibble


-- 
      [ See http://www.gotw.ca/resources/clcm.htm for info about ]
      [ comp.lang.c++.moderated.    First time posters: Do this! ]

Back to comp.lang.c++.moderated | Previous | NextNext in thread | Find similar


Thread

C++ exceptions are broken. Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk> - 2016-03-08 06:31 -0600
  Re: C++ exceptions are broken. "James K. Lowden" <jklowden@speakeasy.net> - 2016-03-09 08:25 -0600
    Re: C++ exceptions are broken. Elias Salomão Helou Neto <eshneto@googlemail.com> - 2016-03-12 06:28 -0600
    Re: C++ exceptions are broken. Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk> - 2016-03-12 14:46 -0600
      Re: C++ exceptions are broken. Hergen Lehmann <hlehmann.expires.5-11@snafu.de> - 2016-03-12 16:50 -0600
      Re: C++ exceptions are broken. "James K. Lowden" <jklowden@speakeasy.net> - 2016-03-13 15:55 -0600
        Re: C++ exceptions are broken. Gareth Owen <gwowen@googlemail.com> - 2016-03-15 08:45 -0600
          Re: C++ exceptions are broken. Bo Persson <bop@gmb.dk> - 2016-03-15 12:22 -0600
            Re: C++ exceptions are broken. "Alf P. Steinbach" <alf.p.steinbach+usenet@googlemail.com> - 2016-03-17 06:43 -0600
            Re: C++ exceptions are broken. Paavo Helde <myfirstname@osa.pri.ee> - 2016-03-17 06:43 -0600
      Re: C++ exceptions are broken. Gareth Owen <gwowen@googlemail.com> - 2016-03-15 08:44 -0600

csiph-web