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

    <tr>
        <th>Summary</th>
        <td>
            [clang][ASTImporter] Failed to import recursive friend class template with nontype template param
        </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>
    Structural matching failed comparing the two record decls
```
template<class A1, A1> class declToImport {
 template<class B1, B1> friend class declToImport;
};
```
which causes importing error.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxskc2OpSAQhZ-m3JA2CP6xYHFtx2TW3S-AUCoTFAPYd_rtJ3rvpNOZSQg_Rb5KnXNUjHbeECVUHVR9po60-CCN2uzvltJs9OZTvqVw6HQE5ciqkl7sNpNJWYeGaL_uKpyFtCBJd08Cah8MMahdBNoDvUFNn-t6Jlx3pxICf9VOxUhuBbDXc-c_yKNywu_-57r7kAg03QMk_5DdRXYXOQWLm_lPA-BPHpr-6_59pvti9UK0OiJGYi_s1IQh-JBnRnIjuFAZyqIWtGxZ2dBskbxqlaAVNVMtKsFrrg2fJhSNqUVb1GNmJaOM04Y1RcuaiuYUmWka1BNrS1ZqASXFVVmXO_ex5j7MmY3xQFmXRS0yp0Z08YqGsQ3v5PoExs6kgjyZl_GYI5TU2ZjiV5dkk7sy1U5tM1Q9VN3t7f1hCAaoejI8Akz-qfcM7gjRfuB3K_-aTu42LWTzW_rc8au6q6DW7AhOLintEfgN2ABsmG1ajjHXfgU2nHM9j5c9-F-oE7DhUhOBDZfaPwEAAP__UY3Prg">