C++ crash with -fno-exceptions

Gerald Pfeifer pfeifer@dbai.tuwien.ac.at
Wed Dec 20 09:06:00 GMT 2000


If I disable exception handling with -fno-exceptions, I get the following
warning messages, followed by a compiler crash (much) farther down the
way.

In file included from
/sw/test/gcc/FreeBSD/include/g++-v3/bits/std_ios.h:42,
                 from /sw/test/gcc/FreeBSD/include/g++-v3/bits/std_ostream.h:37,
                 from /sw/test/gcc/FreeBSD/include/g++-v3/bits/std_iostream.h:38,
                 from /sw/test/gcc/FreeBSD/include/g++-v3/iostream:2,
                 from dl.h:10,
                 from stats.C:4:
/sw/test/gcc/FreeBSD/include/g++-v3/bits/localefwd.h: In member function
  `void std::locale::_Impl::_M_remove_reference()':
/sw/test/gcc/FreeBSD/include/g++-v3/bits/localefwd.h:361: exception handling
   disabled, use -fexceptions to enable
/sw/test/gcc/FreeBSD/include/g++-v3/bits/stl_vector.h: In member function
`void
   std::vector<_Tp, _Alloc>::_M_insert_aux(std::__normal_iterator<_Tp*,
   std::vector<_Tp, _Alloc> >, const _Tp&) [with _Tp = IDENT, _Alloc =
   std::allocator<IDENT>]':
/sw/test/gcc/FreeBSD/include/g++-v3/bits/stl_vector.h:348:   instantiated
from `void std::vector<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp =
IDENT, _Alloc = std::allocator<IDENT>]'
dltypes.h:393:   instantiated from here
/sw/test/gcc/FreeBSD/include/g++-v3/bits/stl_vector.h:660: Internal error:
   Segmentation fault.

Seen on i386-unknown-freebsd4.2 with current CVS and a plain
 gcc stats.ii -fno-exceptions

Gerald
-- 
Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stats.ii.bz2
Type: application/x-bzip2
Size: 77283 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20001220/8c9bc964/attachment.bz2>


More information about the Gcc-bugs mailing list