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]

C++ crash with -fno-exceptions


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/

stats.ii.bz2


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