This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

bug with HUGE_VAL and C++ initializer lists


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]