Date: Thu, 10 Apr 2008 00:04:06 +0200 From: Dirk GOUDERS <hank@et.bocholt.fh-gelsenkirchen.de> To: yuri@rawbw.com Cc: freebsd-hackers@freebsd.org, Ted Faber <faber@ISI.EDU> Subject: Re: C++ exceptions are broken in FreeBSD with gcc-compiled code? Message-ID: <1094.1207778646@sora.hank.home> In-Reply-To: <47FD0D21.7010009@rawbw.com> References: <47FCF12D.3070902@rawbw.com> <20080409172905.GA33086@zod.isi.edu> <20080409182602.GA46118@owl.midgard.homeip.net> <47FD0D21.7010009@rawbw.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> > It works fine for me too, using FreeBSD 6-stable and the built-in gcc > > 3.4.6 > > as well as with gcc 4.2.4 20080305 installed from ports. > > No need to use -pthreads in either case > > This means that this issue is STABLE-7.0 specific. I am not able to reproduce the problem here; I will compile the updated sources tonight to check if that changes anything: # uname -sr FreeBSD 7.0-STABLE # g++ --version g++ (GCC) 4.2.1 20070719 [FreeBSD] Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # cat exc.C #include <iostream> #include <string> using namespace std; int main() { try { throw string("String"); } catch (string s) { cout << "Caught an exception \"" << s << "\"\n"; } } # g++ -o exc exc.C # ./exc Caught an exception "String"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1094.1207778646>