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

    <tr>
        <th>Summary</th>
        <td>
            [ASTImporter] Class with repeated friends are rejected when imported into initial empty Context
        </td>
    </tr>

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

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

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

<pre>
    ```c
struct foo { friend class X; friend class X; }; // FromContext
```
only one friend is imported, similar to the following:
```c
struct foo { friend class X; }; // ToContext
```
but when imported again, `struct foo` in FromContext is reported as
not equivalent to `struct foo` in ToContext, thus rejected.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMkk9vnDAQxT-NuYyyss2fwIFDsiuknptDrwZmYSpjb-0hm3z7ypBk2yiqKiFZgPyb9948EyNNDrEV5aMoT5lZefahHY2jl1rKrPfjaysquT-DkCchHyKHdWA4ew_i_hHOgdCNMFgTI_wQ-VdfxP1pO3QndAdd8MvRO8YX3okfE_ZX7-wreIfvIIpAy8UHxlHoI0RayJoA7IFnhLO31l_JTSJ_-IT7X8F_y3vy_xLXrwzXGd2HJDCTIZeEiUreRolKArk_vSYfAd8vxR3nPAP-WunZWHScPH1FuUnSR-B5TaCfODCOh2xs87HJG5Nhq6pGqaqUeZPNbX9W4zDWdaXLIW_yShWqwKJXY95XCos6o1ZLnctaFqqSedkcRlmqRjU4KF3I2hSikLgYsgdrn5eDD1NGMa7YVkWhy8yaHm3cmqO1wytsP4XWqUihTXfu-nWKopCWIscbhYntVrmH70_f9hSDKE9w3DZyJZ5TTmhSTvuyIpiAH54_5U-OPZAjJmMBlwu_wlta2RpsOzNfYurGtt2JeF77w-AXobuk6O24uwSf6EJ3m48odLf5_B0AAP__AmD99w">