[Bug c++/82254] New: std::is_nothrow_invocable is broken
bolero.murakami at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Sep 19 11:51:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82254
Bug ID: 82254
Summary: std::is_nothrow_invocable is broken
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: bolero.murakami at gmail dot com
Target Milestone: ---
std::is_nothrow_invocable is broken.
example:
--------------------------------
struct X {
X(int x) { throw x; }
};
int f(int x) noexcept { return x; }
using F = decltype(f);
--------------------------------
INVOKE<X>(F, int) throws exception,
but std::is_nothrow_invocable_r_v<X, F, int> is true.
Should actually return false.
Run code(wandbox): https://wandbox.org/permlink/WDeMGw6zbAZ7pYk1
More information about the Gcc-bugs
mailing list