This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Exceptions broken in 1.03a ???
- To: egcs-bugs at cygnus dot com
- Subject: Exceptions broken in 1.03a ???
- From: Thorsten Westheider <twesthei at phya1 dot physik dot uni-bielefeld dot de>
- Date: Tue, 28 Jul 1998 15:13:26 +0200
- Organization: Theoretische Physik Universitaet Bielefeld
Hi again,
I traced the problem with MICO down to broken exceptions,
compiling
class Ex {};
int main ()
{
try {
throw Ex();
return 1;
} catch (Ex &ex) {
return 0;
} catch (...) {
return 1;
}
}
with
c++ -o conftest -O -fno-rtti -fexceptions -O0 -I/usr/local/include
-L/usr/local/lib -L/usr/local/qt/lib conftest.C -lreadline
-lncurses -ldl -lbsd -lm
creates an executable that core dumps on call:
weyoun:~$ conftest
IOT trap/Abort (core dumped)
Another interesting fact can be seen in the code of the
executable itself:
GCC: (GNU) 2.7.2.3^@^@GCC
: (GNU) egcs-2.90.29 980515 (egcs-1.0.3 release)^@^@GCC: (GNU) 2.7.2.3^@^@GCC:
(GNU) 2.7.2.3
I _really_ don't get it, is this egcs or is this gcc-2.7.2.3 ?
cu
Thorsten
===========================================================
Thorsten Westheider / / (_)__ __ ____ __
Im Schlingen 15 / /__/ / _ \/ // /\ \/ /
32120 Hiddenhausen -- Germany /____/_/_//_/\_,_/ /_/\_\
2.0.35
http://www.physik.uni-bielefeld.de/~twesthei
mailto:twesthei@phya1.physik.uni-bielefeld.de
===========================================================