This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/19997] New: isfinite() and friends don't compile with non-float arguments
- From: "mdavidsaver at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 26 Apr 2016 14:51:22 +0000
- Subject: [Bug math/19997] New: isfinite() and friends don't compile with non-float arguments
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=19997
Bug ID: 19997
Summary: isfinite() and friends don't compile with non-float
arguments
Product: glibc
Version: 2.23
Status: NEW
Severity: minor
Priority: P2
Component: math
Assignee: unassigned at sourceware dot org
Reporter: mdavidsaver at gmail dot com
Target Milestone: ---
A perhaps unintentional side-effect of a change in math.h [1] is that the
floating-point classification macros (isfinite() et al.) now fail to compile
when given non-floating point arguments and when GCC builtins are used.
eg. "isfinite(0)" gives.
> error: non-floating-point argument in call to function â__builtin_isfiniteâ.
In my case[2] this is in test code, and is easily worked around. A little
searching finds what appear to be a few other cases[3].
[1]
https://sourceware.org/git/?p=glibc.git;a=commit;h=8df4e219e43a4a257d0759b54fef8c488e2f282e
[2] http://www.aps.anl.gov/epics/tech-talk/2016/msg00730.php
[3]
https://www.google.com/#q=site:bugs.debian.org+%22non-floating-point+argument+in+call+to+function%22
--
You are receiving this mail because:
You are on the CC list for the bug.