<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/113087>113087</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [clang + libstdc++] Error when using Clang 19 to compile Catch2's REQUIRE over tuple against libstdc++ in C++23 mode
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          horenmar
      </td>
    </tr>
</table>

<pre>
    I got a bug report in Catch2, that with the specific combination of
  * Clang 19.1
  * libstdc++ as the stdlib
  * C++23 as the language mode

a relatively simple assertion comparing two tuples does not compile.

**example**
```cpp
#include <catch2/catch_test_macros.hpp>
#include <tuple>

TEST_CASE("tuples") {
    std::tuple<int, int> bob;
 CHECK(bob == std::make_tuple(4, 2));
}
```

[This code compiles when the language mode is C++20, when using Clang 18 + C++23, when using Clang 19 + libc++, or when using GCC + libstdc++, but not in the specific Clang 19 + libstdc++ + C++23 combination.](https://compiler-explorer.com/z/6x3T6Yoda)


</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsVE2PqzYU_TVmczURXEMgCxYJkPapq743XXQ1ssGAW4ORbWbm9ddX5iOTzBvJspP43OOrc04us1Z2oxA5SS4kKQM2u16bvNdGjAMzAdfNz_wbdNoBAz53YMSkjQM5QsFc3SPBAlzPHLxJ14PrBdhJ1LKVNdR64HJkTuoRdEvCkoRnAIJnKBQbO4hOh-j-VyW5dU1N8ELwAsyubK5Rkj8UrwCkO8STzawTMOhGrMh1Z2CEYk6-CvUTrBwmJYBZK8zSUq2HiRk5duDeNLh5UsJCo4WFUbvlVipxuOcj6Jd4Z55p_bJdHMN11dO0Q6kcazU3Aggt6k2q6_LhxQnrXgZWG20P_TQRWn1VtHT0cbfsz9WP55fi_KMimBHEtWmCSPAEJL3sMoGXjdAzoeeNpZCj81b5g1bANSd0hxe_V8UfBDOuORBaElp-lA_sX_GycmAWewb_ll97OUnLTyI8SJZcnntpodaN2DW18NaL8VfrQNqbuaF_aoHN1lu0JSYDH41bAr4GnRaQknyLkkdpcw_8rSh2zEfiPIzPbnFfjo9R_sx8l9OHhu4zfyBJSTDrnZusFxOvPgCrBOZJvE9KG2EOtR4IXv8jeD2-0-fj37phXt47DYMmp82Jnlgg8ijFU0xphknQ520SJVl8qgVlTRgm7JikpyNGmDJs2lTQQOYYYhyFGEZxlIbJIaHHmPO2bTMeN1HLSRyKgUl1UOp1OGjTBdLaWeRRRMMsDRTjQtllNiDWXgOftaQMTO4LnvjcWRKHSlpnPyicdGoZKEvFF0InJVTGPFpyU9jpPSe3CZNa-F79-de37xXoV2HW_yqwjsnRuk92-MF0c8OnKpiNyh9N6KTrZ74p79vejqfJ6H9E7QheFxksweumxGuO_wcAAP__A9ONNQ">