[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#211661: marked as done (gcc-3.3: With -std=c99, the NAN and INFINITY macros are not regarded as constants)

Your message dated Fri, 19 Aug 2005 23:28:33 +0200
with message-id <20050819212833.GA11421@ay.vinc17.org>
and subject line Bug#211661: gcc-3.3: With -std=c99, the NAN and INFINITY macros are not regarded as constants
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

Received: (at submit) by bugs.debian.org; 19 Sep 2003 09:26:11 +0000
>From vincent@vinc17.org Fri Sep 19 04:26:09 2003
Return-path: <vincent@vinc17.org>
Received: from macker.loria.fr [] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1A0HWj-00078l-00; Fri, 19 Sep 2003 04:26:09 -0500
Received: from localhost.loria.fr (localhost.loria.fr [])
	by localhost (Postfix) with ESMTP
	id E29AD6993; Fri, 19 Sep 2003 11:26:07 +0200 (MEST)
X-Amavix: Anti-spam check done by SpamAssassin
X-Amavix: Anti-virus check done by McAfee
X-Amavix: Scanned by Amavix
Received: from greux.loria.fr (greux.loria.fr [])
	by macker.loria.fr (Postfix) with ESMTP
	id 170605CB2; Fri, 19 Sep 2003 11:26:05 +0200 (MEST)
Received: from lefevre by greux.loria.fr with local (Exim 3.36 #1 (Debian))
	id 1A0HWe-0005JL-00; Fri, 19 Sep 2003 11:26:04 +0200
Date: Fri, 19 Sep 2003 11:26:04 +0200
From: Vincent Lefevre <vincent@vinc17.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: gcc-3.3: With -std=c99, the NAN and INFINITY macros are not regarded as constants
Message-ID: <20030919092604.GA20362@greux.loria.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Reportbug-Version: 2.28
X-Mailer-Info: http://www.vinc17.org/mutt/
User-Agent: Mutt/1.5.4i
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_9_16 (

Package: gcc-3.3
Version: 1:3.3.2-0pre3
Severity: normal

When compiling the following program with gcc -std=c99

#include <math.h>
int main (void)
  static double x = NAN;
  return x == 0;

I get:

testconstnan.c: In function `main':
testconstnan.c:27: error: initializer element is not constant

But the ISO C standard says (7.12):

       [#5] The macro


       is defined if and only if the implementation supports  quiet
       NaNs   for  the  float  type.   It  expands  to  a  constant
       expression of type float representing a quiet NaN.

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux greux.loria.fr 2.4.20 #2 Mon Mar 31 18:37:25 CEST 2003 i686
Locale: LANG=C, LC_CTYPE=en_US.ISO8859-1

Versions of packages gcc-3.3 depends on:
ii  binutils          The GNU assembler, linker and bina
ii  cpp-3.3                    1:3.3.2-0pre3 The GNU C preprocessor
ii  gcc-3.3-base               1:3.3.2-0pre3 The GNU Compiler Collection (base 
ii  libc6                      2.3.2-6       GNU C Library: Shared libraries an
ii  libgcc1                    1:3.3.2-0pre3 GCC support library

-- no debconf information

Received: (at 211661-done) by bugs.debian.org; 19 Aug 2005 21:28:41 +0000
>From vincent@vinc17.org Fri Aug 19 14:28:41 2005
Return-path: <vincent@vinc17.org>
Received: from jlefevre.net1.nerim.net (ay.vinc17.org) [] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1E6EPp-0006nX-00; Fri, 19 Aug 2005 14:28:41 -0700
Received: from lefevre by ay.vinc17.org with local (Exim 4.52)
	id 1E6EPh-0002zB-B1; Fri, 19 Aug 2005 23:28:33 +0200
Date: Fri, 19 Aug 2005 23:28:33 +0200
From: Vincent Lefevre <vincent@vinc17.org>
To: Matthias Klose <doko@cs.tu-berlin.de>
Cc: 211661-done@bugs.debian.org
Subject: Re: Bug#211661: gcc-3.3: With -std=c99, the NAN and INFINITY macros are not regarded as constants
Message-ID: <20050819212833.GA11421@ay.vinc17.org>
References: <20030919092604.GA20362@greux.loria.fr> <16248.43919.145922.927273@gargle.gargle.HOWL> <20031001072812.GA15318@ay.nerim.net> <20031001155224.GG28888@ay.nerim.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <20031001155224.GG28888@ay.nerim.net>
X-Mailer-Info: http://www.vinc17.org/mutt/
User-Agent: Mutt/1.5.10-vl-20050813i
Delivered-To: 211661-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

On 2003-10-01 17:52:24 +0200, Vincent Lefevre wrote:
> According to a friend of mine, the current libc6 construction for
> NAN was supported (as a constant) by GCC 3.0, but this is no longer
> correct as of GCC 3.1. As a consequence, glibc needs to be updated.

I'm closing this bug since I cannot reproduce the problem with
gcc 3.3, gcc 3.4 and gcc 4.0. I assume that it has been fixed.

Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA

Reply to: