Remove constexpr support for std::apply because it introduces regressions.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@235274 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -9,6 +9,11 @@
|
||||
|
||||
// UNSUPPORTED: c++98, c++03, c++11
|
||||
|
||||
// TODO(ericwf)
|
||||
// constexpr support temporarily reverted due to bug:
|
||||
// https://llvm.org/bugs/show_bug.cgi?id=23141
|
||||
// XFAIL: *
|
||||
|
||||
// <experimental/tuple>
|
||||
|
||||
// template <class F, class T> constexpr decltype(auto) apply(F &&, T &&)
|
||||
|
@@ -32,6 +32,8 @@ namespace ex = std::experimental;
|
||||
|
||||
int main()
|
||||
{
|
||||
// TODO(ericwf): Re-enable constexpr support
|
||||
/*
|
||||
{
|
||||
constexpr func_obj f;
|
||||
constexpr std::tuple<> tp;
|
||||
@@ -39,6 +41,7 @@ int main()
|
||||
static_assert(1 == ex::apply(static_cast<func_obj const &>(f), tp), "");
|
||||
static_assert(2 == ex::apply(static_cast<func_obj const &&>(f), tp), "");
|
||||
}
|
||||
*/
|
||||
{
|
||||
func_obj f;
|
||||
std::tuple<> tp;
|
||||
|
Reference in New Issue
Block a user