[Bug c++/49813] [C++0x] sinh vs asinh vs constexpr
vincenzo.innocente at cern dot ch
gcc-bugzilla@gcc.gnu.org
Mon Jul 25 11:02:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49813
--- Comment #33 from vincenzo Innocente <vincenzo.innocente at cern dot ch> 2011-07-25 11:02:26 UTC ---
indeed
as noted in comment 8
20 static constexpr float nan1 = std::asin(1.45);
21 static constexpr float nan2 = std::sqrt(-1.45);
produces the quite confusion error message:
cexprMath.cpp:20:47: error: field initializer is not constant
cexprMath.cpp:21:48: error: field initializer is not constant
something saying that the argument is out-of-range may be more appropriate
More information about the Gcc-bugs
mailing list