Add a note regarding gcc bug #72867

This commit is contained in:
Gael Guennebaud
2016-09-22 11:18:52 +02:00
parent 4b377715d7
commit 66cbabafed
2 changed files with 7 additions and 2 deletions

View File

@@ -365,6 +365,7 @@ template<typename Scalar> void packetmath_real()
}
if (PacketTraits::HasTanh) {
// NOTE this test migh fail with GCC prior to 6.3, see MathFunctionsImpl.h for details.
data1[0] = std::numeric_limits<Scalar>::quiet_NaN();
packet_helper<internal::packet_traits<Scalar>::HasTanh,Packet> h;
h.store(data2, internal::ptanh(h.load(data1)));