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: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 26 Jul 2011 00:11:48 +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
--- Comment #42 from Jason Merrill <jason at gcc dot gnu.org> 2011-07-26 00:10:20 UTC ---
(In reply to comment #34)
> (we *do* have PRs about constexpr vs diagnostics)
Notably 45923, which I have just closed as fixed by my June 29 patch.
The comment 8 testcase results in errors like
wa.C:16:64: error: call to non-constexpr function âfloat std::nextafter(float,
float)â
wa.C:16:64: error: field initializer is not constant
...
which seems plenty clear to me: the initializer is not constant because of the
call to a non-constexpr function.
The isinf issue has to do with the (...) signature;
morally_constexpr_builtin_function_p rejects varargs. Seems like we should add
BUILT_IN_ISINF and its variants to builtin_valid_in_constant_expr_p.