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

    <tr>
        <th>Summary</th>
        <td>
            Cannot inherit constructor template from base class in presence of constrained own constructor
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          h-2
      </td>
    </tr>
</table>

<pre>
    ```c++
#include <concepts>
#include <string>

struct S
{
    S() = default;
    S(auto) {}
};

struct T : S
{
    using S::S;

    T(std::integral auto) {}
};

int main()
{
    T t(std::string{});
}
```

This fails to build on clang++-15.0.0 and 16.0.0-++20220929042300+b55e76de8bcf-1~exp1~20220929042408.451. It builds on GCC.

Any of the following makes it build and select the constructor in the base class:
1. remove the constructor template in `T` completely
2. change the constructor template in `T` to not be a template (e.g. argument type `int`)
3. change the constructor template in `S` to not be a template and accept exactly `std::string`.

maybe related to #58059 ?

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyNVNtymzAQ_Rp40ZgR4v7Ag2snnT7bPyBgAbVCYiSRxH_fFdiJk7ozYQQI7e45qz0rGt1d6iCn22gD9sMPegzoPmCJUK1cOiBBcmi1amF2NkieHpmtM0INH8b1iYtL68jpulZcgQlep4CVAasw9Eg66PkiXZB8sfPF6dUHA4vjDeT47veJ5IxQ-4dUi8XM0JLscZy-RHuHM3JZ120OQjkYDJfke-zoTiYu1LadB-xn4u7hr3XaMDHgHe2d4qbFPct5FJb0XEhLnCbNImRHtCKt5Ii1SraLs4hGlHDVkTj3091mYJQxWrGKpiyhFBeaLIMi76Bs2n4XB8UTvM3-deeY0jJKszgiv9xGZj3bz8Mhuk9qry5E98SNQHotpX71ZZ74H7BEXOPWdCxIQIG8HzbRJpc2RKh1qeEW_Eas9QVagZHYwKRf4J8YB9MsuQMfjCU64412XAMH8rJFs4i0I9ble9FYTqUxWyD8w46CQTREhJthmQAVdpcZfAiq7ZW5CZ18l-r0XypfIN76k0XgjbdOXrz_13bJ6afKT_yCKAY8Qudx8SxmJc38cXreXEKo4zxP0wJVZ2FXJ12VVDx0wkmoD1z5TIQawaBUDxPvjZ7uxPEbmQ1YwL-AV32LwcbHBPSruscIFyPr0bl5VZQ94xiEG5cmQqnwQ8qX22s3G_0bmwM_hbULWJzgRnIajjVrmo7TAmLosClZ1TPO-pJXGe6q7CkNJW9A2jrIsM2ZgleyQuA8yI6hqG_9HBcsoyxqk7LoU8r7tGF53FRBSgEProx8HpE2Q2jqNaVmGSwapbDOfhixBGJQACsd4uPfYdSmHncsXGnrNe2_vi6Rlw">