http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49813
Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|libstdc++ |c++ --- Comment #30 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-07-25 10:51:19 UTC --- Jason, looks like we have a remaining curious C++ front-end issue with isinf for long double, see the below. Can you have a look? Thanks! Paolo. ////////////////// inline constexpr bool isinf(long double __x) { return __builtin_isinf(__x); } inline constexpr bool isinf(double __x) { return __builtin_isinf(__x); } inline constexpr bool isnan(long double __x) { return __builtin_isnan(__x); } int main() { constexpr long double num1 = __builtin_isinf(1.l); // Ok. constexpr long double num2 = isinf(1.l); // Error. constexpr double num3 = isinf(1.); // Ok. constexpr long double num4 = isnan(1.l); // Ok. }