Bug#231748: libc6-dev: programs using HUGE_VAL will issue a warning when compiled with -pedantic on the g++-3.3
Package: libc6-dev
Version: 2.3.2-8
Severity: normal
-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux skywise 2.4.24 #1 Sat Jan 31 22:26:19 CET 2004 i686
Locale: LANG=de_DE, LC_CTYPE=de_DE
Versions of packages libc6-dev depends on:
ii libc6 2.3.2-8 GNU C Library: Shared
libraries an
A program using HUGE_VAL will compile with a warning when compiled with
g++-3.3 -pedantic (g++-3.3 (GCC) 3.3.2 (Debian)).
How to reproduce:
Save the following program as "test.cpp".
/* snip */
#include <math.h>
int main(int argc,char **argv)
{
double x = HUGE_VAL;
return 0;
}
/* snip */
compile it as follows:
$ g++-3.3 -pedantic test.cpp
g++ will issue the following warning:
test.cpp:5:14: Warnung: use of C99 hexadecimal floating constant
Reply to: