Skip to content

Commit 4ca6d72

Browse files
committed
CI Revert UFCS test restore for further investigation
1 parent 4e2242f commit 4ca6d72

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

regression-tests/mixed-bugfix-for-ufcs-non-local.cpp2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ d: _ == t<o.f()>(); // Fails on Clang 12 (lambda in unevaluated context).
3838

3939
u: @struct type = {
4040
b: bool == o.f();
41-
c: bool == :(forward x: decltype(o.f())) = x;(true); // Fails on Clang 12 (lambda in unevaluated context).
41+
c: bool == :(forward x: decltype(f(o))) = x;(true); // Fails on Clang 12 (lambda in unevaluated context).
4242
g: (s, sz) pre(s.sz() != 0) = { }
4343
}
4444

regression-tests/test-results/mixed-bugfix-for-ufcs-non-local.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ auto g() -> void{
9797
inline CPP2_CONSTEXPR bool u::b{ CPP2_UFCS_NONLOCAL(f)(o) };
9898
inline CPP2_CONSTEXPR bool u::c{ [](auto&& x) -> decltype(auto)// Fails on Clang 12 (lambda in unevaluated context).
9999
#line 42 "mixed-bugfix-for-ufcs-non-local.cpp2"
100-
requires (std::is_convertible_v<CPP2_TYPEOF(x), std::add_const_t<decltype(CPP2_UFCS_NONLOCAL(f)(o))>&>) { return CPP2_FORWARD(x); }(true) };
100+
requires (std::is_convertible_v<CPP2_TYPEOF(x), std::add_const_t<decltype(f(o))>&>) { return CPP2_FORWARD(x); }(true) };
101101
#line 42 "mixed-bugfix-for-ufcs-non-local.cpp2"
102102
auto u::g(auto const& s, auto const& sz) -> void{
103103
if (cpp2::cpp2_default.is_active() && !(CPP2_UFCS(sz)(s) != 0) ) { cpp2::cpp2_default.report_violation(""); }}

0 commit comments

Comments
 (0)