summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/std/std_complex.h
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/include/std/std_complex.h')
-rw-r--r--libstdc++-v3/include/std/std_complex.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/std/std_complex.h b/libstdc++-v3/include/std/std_complex.h
index 955a12ca249..87e4bcb4d26 100644
--- a/libstdc++-v3/include/std/std_complex.h
+++ b/libstdc++-v3/include/std/std_complex.h
@@ -456,7 +456,7 @@ namespace std
inline _Tp
norm(const complex<_Tp>& __z)
{
- return _Norm_helper<__is_floating<_Tp>::_M_type>::_S_do_it(__z);
+ return _Norm_helper<__is_floating<_Tp>::_M_type && !_GLIBCPP_FAST_MATH>::_S_do_it(__z);
}
template<typename _Tp>
OpenPOWER on IntegriCloud