|
1 |
| -pure2-last-use.cpp2:945:44: error: a lambda expression cannot appear in this context |
2 |
| - static_cast<void>([_0 = std::array<int,[](auto const& x) -> auto { return identity(x); }(0)>()]() mutable -> auto { return _0; });// Fails on Clang 12 (lambda in unevaluated context). |
3 |
| - ^ |
4 |
| -1 error generated. |
| 1 | +pure2-last-use.cpp2:273:36: error: expected variable name or 'this' in lambda capture list |
| 2 | + public: std::add_pointer_t<int([[maybe_unused]] cpp2::impl::in<int> unnamed_param_1)> g; |
| 3 | + ^ |
| 4 | +pure2-last-use.cpp2:329:2: error: expected '>' |
| 5 | +}; |
| 6 | + ^ |
| 7 | +pure2-last-use.cpp2:273:30: note: to match this '<' |
| 8 | + public: std::add_pointer_t<int([[maybe_unused]] cpp2::impl::in<int> unnamed_param_1)> g; |
| 9 | + ^ |
| 10 | +pure2-last-use.cpp2:344:16: error: no template named 'move_only_function' in namespace 'std' |
| 11 | + public: std::move_only_function<int()> b; |
| 12 | + ~~~~~^ |
| 13 | +pure2-last-use.cpp2:348:94: error: no member named 'move_only_function' in namespace 'std' |
| 14 | +CPP2_REQUIRES_ (std::is_same_v<std::unique_ptr<int>, CPP2_TYPEOF(a_)> && std::is_same_v<std::move_only_function<int()>, CPP2_TYPEOF(b_)> && std::is_same_v<std::add_lvalue_reference_t<int>, CPP2_TYPEOF(c_)>) ; |
| 15 | + ~~~~~^ |
| 16 | +../../../include/cpp2util.h:10008:43: note: expanded from macro 'CPP2_REQUIRES_' |
| 17 | + #define CPP2_REQUIRES_(...) requires (__VA_ARGS__) |
| 18 | + ^~~~~~~~~~~ |
| 19 | +pure2-last-use.cpp2:773:69: error: no template named 'move_only_function' in namespace 'std' |
| 20 | +auto issue_888_1([[maybe_unused]] std::string unnamed_param_1, std::move_only_function<int([[maybe_unused]] cpp2::impl::in<int> unnamed_param_1)> size) -> void; |
| 21 | + ~~~~~^ |
| 22 | +pure2-last-use.cpp2:773:93: error: expected variable name or 'this' in lambda capture list |
| 23 | +auto issue_888_1([[maybe_unused]] std::string unnamed_param_1, std::move_only_function<int([[maybe_unused]] cpp2::impl::in<int> unnamed_param_1)> size) -> void; |
| 24 | + ^ |
| 25 | +pure2-last-use.cpp2:773:156: error: expected unqualified-id |
| 26 | +auto issue_888_1([[maybe_unused]] std::string unnamed_param_1, std::move_only_function<int([[maybe_unused]] cpp2::impl::in<int> unnamed_param_1)> size) -> void; |
| 27 | + ^ |
| 28 | +pure2-last-use.cpp2:773:160: error: expected '>' |
| 29 | +auto issue_888_1([[maybe_unused]] std::string unnamed_param_1, std::move_only_function<int([[maybe_unused]] cpp2::impl::in<int> unnamed_param_1)> size) -> void; |
| 30 | + ^ |
| 31 | +pure2-last-use.cpp2:773:87: note: to match this '<' |
| 32 | +auto issue_888_1([[maybe_unused]] std::string unnamed_param_1, std::move_only_function<int([[maybe_unused]] cpp2::impl::in<int> unnamed_param_1)> size) -> void; |
| 33 | + ^ |
| 34 | +pure2-last-use.cpp2:773:160: error: expected ')' |
| 35 | +auto issue_888_1([[maybe_unused]] std::string unnamed_param_1, std::move_only_function<int([[maybe_unused]] cpp2::impl::in<int> unnamed_param_1)> size) -> void; |
| 36 | + ^ |
| 37 | +pure2-last-use.cpp2:773:17: note: to match this '(' |
| 38 | +auto issue_888_1([[maybe_unused]] std::string unnamed_param_1, std::move_only_function<int([[maybe_unused]] cpp2::impl::in<int> unnamed_param_1)> size) -> void; |
| 39 | + ^ |
| 40 | +pure2-last-use.cpp2:271:7: error: missing '}' at end of definition of 'issue_857_4' |
| 41 | +class issue_857_4 { |
| 42 | + ^ |
| 43 | +pure2-last-use.cpp2:905:1: note: still within definition of 'issue_857_4' here |
| 44 | +namespace captures { |
| 45 | +^ |
| 46 | +pure2-last-use.cpp2:279:178: error: no member named 'move_only_function' in namespace 'std' |
| 47 | +requires (std::is_same_v<std::add_pointer_t<int()>, CPP2_TYPEOF(f_)> && std::is_same_v<std::add_pointer_t<int(cpp2::impl::in<int> in_)>, CPP2_TYPEOF(g_)> && std::is_same_v<std::move_only_function<int()>, CPP2_TYPEOF(mf_)> && std::is_same_v<std::move_only_function<int(cpp2::impl::in<int> in_)>, CPP2_TYPEOF(mg_)>) |
| 48 | + ~~~~~^ |
| 49 | +pure2-last-use.cpp2:278:14: error: out-of-line definition of 'issue_857_4' does not match any declaration in 'issue_857_4' |
| 50 | +issue_857_4::issue_857_4(auto&& f_, auto&& g_, auto&& mf_, auto&& mg_) |
| 51 | + ^~~~~~~~~~~ |
| 52 | +pure2-last-use.cpp2:281:272: error: member initializer 'g' does not name a non-static data member or base class |
| 53 | + , g{ CPP2_FORWARD(g_) } |
| 54 | + ^~~~~~~~~~~~~~~~~~~~~ |
| 55 | +pure2-last-use.cpp2:282:272: error: member initializer 'mf' does not name a non-static data member or base class |
| 56 | + , mf{ CPP2_FORWARD(mf_) } |
| 57 | + ^~~~~~~~~~~~~~~~~~~~~~~ |
| 58 | +pure2-last-use.cpp2:283:272: error: member initializer 'mg' does not name a non-static data member or base class |
| 59 | + , mg{ CPP2_FORWARD(mg_) }{} |
| 60 | + ^~~~~~~~~~~~~~~~~~~~~~~ |
| 61 | +pure2-last-use.cpp2:332:8: error: incomplete type 'issue_857_5' named in nested name specifier |
| 62 | + auto issue_857_5::f() && -> void { f_copy(std::move(cpp2::move(*this).a)); } |
| 63 | + ^~~~~~~~~~~~~ |
| 64 | +pure2-last-use.cpp2:331:7: note: forward declaration of 'issue_857_5' |
| 65 | +class issue_857_5; |
| 66 | + ^ |
| 67 | +pure2-last-use.cpp2:334:3: error: incomplete type 'issue_857_5' named in nested name specifier |
| 68 | + issue_857_5::issue_857_5(auto&& a_) |
| 69 | + ^~~~~~~~~~~~~ |
| 70 | +pure2-last-use.cpp2:331:7: note: forward declaration of 'issue_857_5' |
| 71 | +class issue_857_5; |
| 72 | + ^ |
| 73 | +pure2-last-use.cpp2:334:3: error: incomplete type 'issue_857_5' named in nested name specifier |
| 74 | + issue_857_5::issue_857_5(auto&& a_) |
| 75 | + ^~~~~~~~~~~~~ |
| 76 | +pure2-last-use.cpp2:331:7: note: forward declaration of 'issue_857_5' |
| 77 | +class issue_857_5; |
| 78 | + ^ |
| 79 | +pure2-last-use.cpp2:338:6: error: incomplete type 'issue_857_5' named in nested name specifier |
| 80 | +auto issue_857_5::operator=(auto&& a_) -> issue_857_5& |
| 81 | + ^~~~~~~~~~~~~ |
| 82 | +pure2-last-use.cpp2:331:7: note: forward declaration of 'issue_857_5' |
| 83 | +class issue_857_5; |
| 84 | + ^ |
| 85 | +fatal error: too many errors emitted, stopping now [-ferror-limit=] |
| 86 | +20 errors generated. |
0 commit comments