I have two files. One in c compiled with gcc, and other in c++ compiled with
g++. From c++ is called helper function in c with pointer to error handler as
parameter. Error handler (in c++) execute throw, but it is not catched as I
expected. Instead is called default terminate() function.
I observe this bug on i685 in gcc-2.95 (debian), gcc-3.3.6 (debian), gcc-3.4.5
(gentoo), gcc-3.4.6 (ubuntu) and gcc-4.0.3 (ubuntu).
I also tested it on x86_64 in gcc-3.3.3 (SuSE). With -m32 i get this error but
with -m64 the exception is catched!
--
Summary: throw cause terminate() instead of catch
Product: gcc
Version: 4.0.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mlazar at kma dot zcu dot cz
GCC build triplet: i486-pc-linux-gnu
GCC host triplet: i486-pc-linux-gnu
GCC target triplet: i486-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27098