From owner-freebsd-current@FreeBSD.ORG Mon Mar 31 04:46:04 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 47E5737B401; Mon, 31 Mar 2003 04:46:04 -0800 (PST) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.89]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF10043F93; Mon, 31 Mar 2003 04:46:03 -0800 (PST) (envelope-from leimy2k@mac.com) Received: from asmtp01.mac.com (asmtp01-qfe3 [10.13.10.65]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id h2VCk3DU003899; Mon, 31 Mar 2003 04:46:03 -0800 (PST) Received: from mac.com ([66.156.161.248]) by asmtp01.mac.com (Netscape Messaging Server 4.15) with ESMTP id HCM64Q00.30P; Mon, 31 Mar 2003 04:46:02 -0800 Date: Mon, 31 Mar 2003 06:46:01 -0600 Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v551) To: Stefan Farfeleder From: David Leimbach In-Reply-To: <20030331084936.1F1393FA9@fafoe.dyndns.org> Message-Id: Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.551) cc: questions@freebsd.org cc: Ying-Chieh Liao cc: current@freebsd.org Subject: Re: isnan() with gcc 3.2.2 on FreeBSD 5.0-C X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 12:46:06 -0000 On Monday, March 31, 2003, at 02:49 AM, Stefan Farfeleder wrote: > > The isnan() macro is a new feature of C99 and thus not (yet) part of > C++. Nevertheless you can use -D_GLIBCPP_USE_C99 to include this and There may be no guarantee that any new parts of C99 ever make it into the C++ language. C++ has always been a superset of a subset of C :). That is to say that C is not 100% contained within C++. This has gotten to be more of a problem since the C99 standard has added things the C++ already had as well such as _Complex and the very weird tgmath.h header that seemingly cannot even be written with standard C. [I have seen the version that came with RedHat linux and it involved a bunch of gcc specific code]. Anyway... Its a real world problem now and the errors people are seeing are due to the fact that g++-3.x is more standards compliant than 2.x was. Dave