From owner-freebsd-questions Fri Feb 13 12:26:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA29854 for freebsd-questions-outgoing; Fri, 13 Feb 1998 12:26:39 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from renminbi.fea.com (renminbi.fea.com [206.14.98.3]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id MAA29720 for ; Fri, 13 Feb 1998 12:25:52 -0800 (PST) (envelope-from john@fea.com) Received: by renminbi.fea.com; id AA09221; Fri, 13 Feb 1998 12:25:57 -0800 Received: from florin.fea.com by renminbi via smap (V1.3) id sma009219; Fri Feb 13 12:25:46 1998 Received: from dollar.fea.com by florin.fea.com (florin) (4.1/fea-1.6-1/26/93) id AA08534; Fri, 13 Feb 98 12:25:21 PST Received: from guilder.fea.com by dollar.fea.com (dollar) (4.1/fea-1.6+-5/2/96) id AA11870; Fri, 13 Feb 98 12:25:21 PST Date: Fri, 13 Feb 98 12:25:21 PST From: john@fea.com (John Fox) Message-Id: <9802132025.AA11870@dollar.fea.com> To: freebsd-questions@FreeBSD.ORG Subject: gcc 2.8.0 Cc: john@fea.com Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Has anyone been able to get g++ 2.8 working in 2.2-stable? I compiled the compiler and libstdc++2.8 but exceptions don't work. Any throw, whether caught or not, causes the program to end with signal 6 and print Abort trap. I compiled 2.8 on SunOS 4.1.3 and exceptions work. Here's a program that fails on FreeBSD but works on SunOS: #include class anerror { }; int main() { try { throw anerror(); } catch (anerror) { cout << "caught\n"; return 1; } cout << "not caught\n"; return 0; } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message