NetBSD Problem Report #30623

From www@netbsd.org  Tue Jun 28 15:40:24 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 5BACF63B104; Tue, 28 Jun 2005 15:40:24 +0000 (UTC)
Message-Id: <20050628154024.5BACF63B104@narn.netbsd.org>
Date: Tue, 28 Jun 2005 15:40:24 +0000 (UTC)
From: rearnsha@netbsd.org
Reply-To: rearnsha@netbsd.org
To: gnats-bugs@netbsd.org
Subject: HUGE_VALx is not a constant expression
X-Send-Pr-Version: www-1.0

>Number:         30623
>Category:       standards
>Synopsis:       HUGE_VALx is not a constant expression
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kleink
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 28 15:41:00 +0000 2005
>Closed-Date:    Tue Feb 23 11:15:48 +0000 2010
>Last-Modified:  Tue Feb 23 11:15:48 +0000 2010
>Originator:     Richard Earnshaw
>Release:        3.99.5
>Organization:
ARM
>Environment:
All
>Description:
C99 (section 7.12) requires HUGE_VAL, HUGE_VALF and HUGE_VALL to be constant expressions (ie, that can be used as static initializers).  NetBSD's implementation uses a form that is constant, but not a constant expression.

>How-To-Repeat:
Compile the following program fragment:

#include <math.h>
float f = HUGE_VALF;
double d = HUGE_VAL;
long double l = HUGE_VALL;

gcc test.c -S
test.c:2: error: initializer element is not constant
test.c:3: error: initializer element is not constant
test.c:4: error: initializer element is not constant

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: standards-manager->kleink
Responsible-Changed-By: kleink@netbsd.org
Responsible-Changed-When: Tue, 28 Jun 2005 15:49:59 +0000
Responsible-Changed-Why:
My bug.


State-Changed-From-To: open->analyzed
State-Changed-By: kleink@netbsd.org
State-Changed-When: Tue, 28 Jun 2005 15:49:59 +0000
State-Changed-Why:
There's nothing to be added to the bug description.


From: Christopher Berardi <cberardi@natoufa.com>
To: gnats-bugs@NetBSD.org, joerg@NetBSD.org
Cc: 
Subject: Re: standards/30623
Date: Mon, 22 Feb 2010 20:12:09 -0500

 Duplicate PR. Solved by PR standards/36988.



 -- 
 Christopher Berardi
 http://www.natoufa.com/

 Be still, and know that I am God (Psalms 46:10)

State-Changed-From-To: analyzed->closed
State-Changed-By: joerg@NetBSD.org
State-Changed-When: Tue, 23 Feb 2010 11:15:48 +0000
State-Changed-Why:
Fixed in HEAD.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.