This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug math/5407] New: math.h defines macros OVERFLOW and UNDERFLOW (neither reserved nor documented)


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.


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