This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49813] [C++0x] sinh vs asinh vs constexpr
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 25 Jul 2011 10:51:21 +0000
- Subject: [Bug c++/49813] [C++0x] sinh vs asinh vs constexpr
- Auto-submitted: auto-generated
- References: <bug-49813-4@http.gcc.gnu.org/bugzilla/>
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.
}