From owner-freebsd-current Wed Jan 6 07:46:03 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA28733 for freebsd-current-outgoing; Wed, 6 Jan 1999 07:46:03 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from lab321.ru (anonymous1.omsk.net.ru [62.76.128.34]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA28653 for ; Wed, 6 Jan 1999 07:44:28 -0800 (PST) (envelope-from kev@lab321.ru) Received: from www.lab321.ru (kev@www.lab321.ru [62.76.129.65]) by lab321.ru (8.8.8/8.9.1a) with SMTP id VAA11155 for ; Wed, 6 Jan 1999 21:43:36 +0600 (OS) Date: Wed, 6 Jan 1999 21:43:36 +0600 (OS) From: Eugeny Kuzakov To: current@FreeBSD.ORG Subject: g++ bug ? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi! I tryed to compile this code ( it uses in groff configure): #include "confdefs.h" #ifdef __cplusplus extern "C" void exit(int); #endif extern "C" { void _exit(int); } int i; struct A { char dummy; A() { i = 1; } ~A() { if (i == 1) _exit(0); } }; A a; int main() { return 1; } Under 2.2.8-stable gcc 2.7.2.1 and 2.8.1(from ports) this code compilde Ok. And when I run it, It should return 0. Tested - Ok. Under -current - not to be Ok. gcc 2.7.2.1, gcc 2.8.1 and egcs 1.1.1 compiled Ok, but when I run it code, it return 1. -- Best wishes, Eugeny Kuzakov Laboratory 321 ( Omsk, Russia ) kev@lab321.ru ICQ#: 5885106 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message