[Bug libstdc++/78361] [7 regression][c++1z] std::__is_referenceable doesn't handle noexcept function types
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jan 13 11:46:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78361
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Or to demonstrate the regression, this is valid but fails with gcc7 in C++17
mode:
#include <type_traits>
using std::is_same;
using std::add_pointer;
void f() noexcept { }
static_assert(is_same<add_pointer<decltype(f)>::type, decltype(&f)>::value,
"");
More information about the Gcc-bugs
mailing list