This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
exceptions in standard headers?
- To: gcc-bugs at gcc dot gnu dot org
- Subject: exceptions in standard headers?
- From: "Richard B. Kreckel" <kreckel at ginac dot de>
- Date: Sat, 19 Aug 2000 16:04:57 +0200 (CEST)
- Reply-To: Richard dot Kreckel at Uni-Mainz dot DE
Hi,
I noticed that in recent GCC snapshots if you include some standard header
files that are a priori unrelated to exceptions, you run into trouble when
compiling with -fno-exceptions. For instance, there seems to be the
include chain <iostream> --> <bits/std_iostream.h> -->
<bits/std_ostream.h> --> <bits/std_ios.h> --> <bits/localefwd.h> and the
last one has some trys and catches, requiring -fno-exceptions to be
removed from the options.
I am not 100% certain (ios_base knows about class failure derived from
class exception) but I would regard this a bug. Since localefwd.h looks
unfinished to me it may well be a temporary problem. Is anybody aware of
this and will this be changed at a later stage?
Regards
-richy.
--
Richard Kreckel
<Richard.Kreckel@Uni-Mainz.DE>
<http://wwwthep.physik.uni-mainz.de/~kreckel/>