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

    <tr>
        <th>Summary</th>
        <td>
            [llvm18] Is this current behavior correct?
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    ```
bool correctness{true};
struct A {
    bool operator==(A const&oth) const {
        return true;
 }
};

struct B {
    bool operator==(B const&oth) const {
        return false;
    }
};

struct C {
    bool operator==(C const&oth) const {
        correctness=false;
        return false;
    }
};

typedef std::tuple<A,B,C> tuple_t ;

int test_it (void) {
    tuple_t x,y;
    return ( !(x==y) ) && correctness ;
}
```

This test case does not report an error in GCC11 and later versions. The tuple class overloads the operator==() method. Different structs also overload the operator==() method. Due to the introduction of the patch, the llvm18 reports an error when compiling the test case. Is this reasonable?

GCC11:https://godbolt.org/z/qfjxeGjjj
GCC10.5:https://godbolt.org/z/WzdjEec18

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycVMGOozgQ_ZriUpoITOPAgUNChtHeR9rjyEAlOOvYGbvIdM_XrzDpTtJ72GgkA7KpV-_Vq5JVCPpgiWootlDsEjXx6HxNXvf__Ew6N7zVINPrSneQbjrnDPbOe-rZUgiw3rKfCNY7yLdLSGA_9YwbhPX1BBExAt2ZvGLnId_NS5Qb7J0NDEI6HkFUy_aGhLTyxJO3GFneKXDmWwLuiB_ot8_Qb5-m3ysT7vgRn5DQPCOh-X8J93bnu0clf6iQ38400B4DD5BvIN_wdDYEebMB0WxBNA3kXzEe_mD8BNaWkSnwD80Iorw4PczCH4p9h76CaN4eVF3lgigRRAaifF28eIs54iNByPshuxPwUdLjWC7v76MOURn2KhAOjgJax-jp7DyjskjeO4_a4remyTJUdkCjmDxeyAftbFjh95EW9dgbFQK6C3nj1BCQR_pv_2bFJ-LRDSvc6f2ePFnGZQICKhPcR4YnEkyE7GKctuzdMPWsnUW3j2dnxf0IookbYy6nrLzWFm7F_RrJYu9OZ220PcTQD0tW-Ndchg7oSQVnVTc3vb33MBoD-WZkPod5NkQLoj24oXOGV84fQLS_QbQ_98dX-nY8Hm-wdFU8Afz793D8Sn1WLsBkqPOhyiuVUJ3JKq-kqGSRjHWZUqnWshsKypWUuarWXU_yRaqsEp3MEl2LVORplco0y2RarIY0S0vZSalkVQyqhJeUTkqb1WzVrCDRIUxUy-IlTxOjOjIh3nxCWPqF8ScIMV-Evp4xX7rpEOAlNTpwuGVhzSZemUsLoNh92NpPPva_o1FdtPPvUwx5m0ze1J_M0TxO3ap3JxDtnOz6-XL27jijRBtFBRBtFP1vAAAA___LdbSe">