From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31505 invoked by alias); 19 Jun 2005 23:26:49 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 31491 invoked by uid 22791); 19 Jun 2005 23:26:44 -0000 Received: from smtp-101-monday.nerim.net (HELO kraid.nerim.net) (62.4.16.101) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sun, 19 Jun 2005 23:26:44 +0000 Received: from uniton.integrable-solutions.net (gdr.net1.nerim.net [62.212.99.186]) by kraid.nerim.net (Postfix) with ESMTP id 572C440E21; Mon, 20 Jun 2005 01:26:40 +0200 (CEST) Received: from uniton.integrable-solutions.net (localhost [127.0.0.1]) by uniton.integrable-solutions.net (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id j5JNQfKY028713; Mon, 20 Jun 2005 01:26:42 +0200 Received: (from gdr@localhost) by uniton.integrable-solutions.net (8.12.10/8.12.10/Submit) id j5JNQfeY028712; Mon, 20 Jun 2005 01:26:41 +0200 To: Geoff Keating Cc: Mark Mitchell , gcc@gcc.gnu.org Subject: Re: GCC 4.0.1 RC2 References: <42B3563D.9070504@codesourcery.com> From: Gabriel Dos Reis In-Reply-To: Date: Sun, 19 Jun 2005 23:26:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2005-06/txt/msg00855.txt.bz2 Geoff Keating writes: | On 19/06/2005, at 3:45 PM, Gabriel Dos Reis wrote: | | > Geoffrey Keating writes: | > | > | libstdc++-v3/testsuite/26_numerics/cmath/ | > c99_classification_macros_c.cc | > | | > | appears to fail, with lots of complaints like | > | | > | c99_classification_macros_c.cc:49:21: error: macro | > "isgreaterequal" requires 2 arguments, but only 1 given | > | | > | but the actual file did this with previous versions too, I think | > | something changed in the test harness. As far as I can tell, this | > | testcase is in fact invalid and should produce exactly this error | > | message. | > | > Why? | > | > (I only thing I see wrong, right now is that the function definitions | > should be part of a class, instead of being at the global scope). | | The testcase includes math.h, which we've said should supply the C99 is also mandated by C++. Clearly, this is a tricky area and I do not believe the testcase is invalid (except as I noted earlier). | functions (or, in this case, macros) even in C++ mode. C99 says that | 'isgreaterequal' is a macro which takes 2 arguments. C++ says that no functional macros (except assert) shall be active. Which leads to interesting games we're playing in the V3 headers to make sure those are not active. The C++ TR1 which include proposals to extend to C99 features also mandate non-functional macros. See what we do with . -- Gaby