This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

exceptions in standard headers?


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/>



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]