https://llvm.org/bugs/show_bug.cgi?id=26120
Bug ID: 26120
Summary: Testsuite uses ::fabs without <math.h>
Product: libc++
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
A number of tests in the testsuite (particularly unordered container tests) use
fabs() without qualification, and without #include <math.h>, only #include
<cmath> (sometimes only indirectly).
That isn't portable, because some implementations only define std::fabs() when
<cmath> is included, and relying on transitive includes is not portable either.
e.g. std/containers/unord/unord.map/unord.map.cnstr/copy.pass.cpp only includes
<cmath> indirectly, and uses fabs() without qualification, so fails to compile
using libstdc++
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs