This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
bug with HUGE_VAL and C++ initializer lists
- To: gcc-bugs at gcc dot gnu dot org
- Subject: bug with HUGE_VAL and C++ initializer lists
- From: Scott Wolford <wolford at enews dot nrl dot navy dot mil>
- Date: Wed, 25 Aug 1999 17:08:39 -0400
The attached should compile (I think) but doesn't because of the funky
way HUGE_VAL is defined in /usr/include/bits/huge_val.h. #Undef'ing
__GNUC__ before #include'ing math.h fixes the problem but I don't think
that's a good or long-term solution.
gcc version egcs-2.91-66 1999 () 314-Linux (egcs-1.1.2 release)
Linux 2.2.5-15 i686 unknown
g++ -o tester tester.cpp
This might be fixed in a newer version but I guess you can easily try it
out; it's easily reproducible.
Scott Wolford
wolford@enews.nrl.navy.mil
TESTER.CPP