type-map: Work around LLVM 22 "out of bounds index" error #247

pull ryanofsky wants to merge 1 commits into bitcoin-core:master from ryanofsky:pr/lindex changing 1 files +30 −1
  1. ryanofsky commented at 10:20 PM on March 1, 2026: collaborator

    This workaround is needed to fix "parameter pack may not be accessed at an out of bounds index" compile errors in https://github.com/bitcoin/bitcoin/pull/29409 due in sanitizer jobs due to https://github.com/bitcoin/bitcoin/pull/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

    /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 https://github.com/llvm/llvm-project/issues/167709 and fix is https://github.com/llvm/llvm-project/pull/183614

  2. type-map: Work around LLVM 22 "out of bounds index" error
    This workaround is needed to fix "parameter pack may not be accessed at an out
    of bounds index" compile errors in
    https://github.com/bitcoin/bitcoin/pull/29409 due in sanitizer jobs due to
    https://github.com/bitcoin/bitcoin/pull/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 https://github.com/llvm/llvm-project/issues/167709 and
    fix is https://github.com/llvm/llvm-project/pull/183614
    f61af48721
  3. DrahtBot commented at 10:21 PM on March 1, 2026: none

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK hebasto

    If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

  4. hebasto approved
  5. hebasto commented at 11:46 AM on March 2, 2026: member

    ACK f61af487217a3e3bd9c0aaddc7b66e35eb97c6e1, I have reviewed the code and it looks OK.

  6. ryanofsky merged this on Mar 9, 2026
  7. ryanofsky closed this on Mar 9, 2026

  8. ryanofsky referenced this in commit 9b78b6043b on Mar 11, 2026
  9. Sjors referenced this in commit 9a92945173 on Mar 11, 2026
  10. ryanofsky referenced this in commit 473e09796e on Mar 12, 2026
  11. ryanofsky referenced this in commit 4522fc61cb on Mar 12, 2026
  12. ryanofsky referenced this in commit c7cdd9dad6 on Mar 26, 2026
  13. ryanofsky referenced this in commit b4753d786c on Mar 26, 2026
  14. ryanofsky referenced this in commit d45e185fe3 on Mar 27, 2026
  15. ryanofsky referenced this in commit db2dc76ee3 on Mar 27, 2026
  16. ryanofsky referenced this in commit 2478a15ef9 on Mar 30, 2026
  17. fanquake referenced this in commit b0f68f0a3a on Mar 30, 2026
  18. fanquake referenced this in commit 7375940eb2 on Apr 1, 2026
  19. Sjors referenced this in commit 65abfa3c1a on Apr 15, 2026
  20. morozow referenced this in commit 08e84496a9 on May 8, 2026
  21. Sjors referenced this in commit 0dd3f5c989 on May 12, 2026

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/libmultiprocess. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-31 17:30 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me