Commit 22bec91
committed
Merge #247: type-map: Work around LLVM 22 "out of bounds index" error
f61af48 type-map: Work around LLVM 22 "out of bounds index" error (Ryan Ofsky)
Pull request description:
This workaround is needed to fix "parameter pack may not be accessed at an out of bounds index" compile errors in
bitcoin/bitcoin#29409 due in sanitizer jobs due to bitcoin/bitcoin#34660 which updates sanitizers to use LLVM 22 instead of LLVM 21:
https://github.com/bitcoin/bitcoin/actions/runs/22501264518/job/65188721708?pr=29409 https://github.com/bitcoin/bitcoin/actions/runs/22501264518/job/65188721733?pr=29409
```c++
/cxx_build/include/c++/v1/__fwd/tuple.h:40:52: error: a parameter pack may not be accessed at an out of bounds index
40 | using type _LIBCPP_NODEBUG = __type_pack_element<_Ip, _Tp...>;
| ^
/cxx_build/include/c++/v1/__utility/try_key_extraction.h:82:67: note: in instantiation of template class 'std::tuple_element<0, std::tuple<>>' requested here
82 | is_same<__remove_const_ref_t<typename tuple_element<0, _Tuple1>::type>, _KeyT>::value,
| ^
```
The upstream LLVM bug is llvm/llvm-project#167709 and fix is llvm/llvm-project#183614
ACKs for top commit:
hebasto:
ACK f61af48, I have reviewed the code and it looks OK.
Tree-SHA512: 19eec5cd304f6e585626fe39a85a82ef2b9b2f5ab1ca8b81c0836d76d3846eb9d4893c0766248251d9e685d49d4a5e84141377dad13888fa8268d78f5c9f7be51 file changed
Lines changed: 30 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
30 | 59 | | |
31 | 60 | | |
32 | 61 | | |
| |||
42 | 71 | | |
43 | 72 | | |
44 | 73 | | |
45 | | - | |
| 74 | + | |
46 | 75 | | |
47 | 76 | | |
48 | 77 | | |
| |||
0 commit comments