This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/5407] New: math.h defines macros OVERFLOW and UNDERFLOW (neither reserved nor documented)
- From: "vincent+libc at vinc17 dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 27 Nov 2007 13:41:01 -0000
- Subject: [Bug math/5407] New: math.h defines macros OVERFLOW and UNDERFLOW (neither reserved nor documented)
- Reply-to: sourceware-bugzilla at sourceware dot org
When using gcc with default options, the file math.h defines macros whose names
are not documented as reserved by the C standard, e.g. OVERFLOW and UNDERFLOW. I
assume that there is no good reason for that, as such definitions aren't even
documented in the glibc manual. This can make user programs not behave as
expected (e.g. when one does configure + make).
Testcase:
#include <math.h>
#ifdef OVERFLOW
#error "A macro OVERFLOW is already defined though it is not a reserved identifier."
#endif
#ifdef UNDERFLOW
#error "A macro UNDERFLOW is already defined though it is not a reserved
identifier."
#endif
int main (void)
{
return 0;
}
--
Summary: math.h defines macros OVERFLOW and UNDERFLOW (neither
reserved nor documented)
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: math
AssignedTo: aj at suse dot de
ReportedBy: vincent+libc at vinc17 dot org
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=5407
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.