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

    <tr>
        <th>Summary</th>
        <td>
            Clang frontend C++ crash with initializer and using 
        </td>
    </tr>

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

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

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

<pre>
    To quickly reproduce: https://gcc.godbolt.org/z/jffz3eca5 (assertion-trunk)

```cpp
#include <string>

template <typename T>
struct test_string : std::string {
    using std::string::string;
};

int main()
{
    std::string s = "Hello, world";
    std::string ss = test_string(s);
}
```

Compiling the above code crashes clang `clang++ -x c++ `, crashes locally using clang-17.0 (a10019a), also on trunk with assertion (see godbolt link) 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsU01v4zgM_TX0hUggU7ETH3zIxwb7A3pfyDITq5UlryS3k_76gR1PmhYDBApBv0c-PlEqRnN1zDUUByhOmRpT50PdhDEpG9W7unLW-PZWv3j8fzT6zd4w8BB8O2oGuccupSGC3AOdgc5XrddX3zbeprUPV6DzJ9D59XL5lKxVgUA7FSOHZLxbpTC6N6AKxAnEfjlLcf_pYVgyJI3TdmwZQR5jCsZdQf7zTErcD1alGZBuAzvVM748QDGFUSdMHNN_dz5OymNqJ91y_ye3PdzxiIhjnFI_IN_jBQ3b01c8n8Yl7JVxQLuv6Z6L_-wcEeQJgehfttYDHfHDB9sC0aPyX2l33tNcQLs4tXzW9t3WZ51H3w_GTpVSx6ga_86ofcuog4odR9RWTb6UYg6ADkAHXP1CvYRTPTo-4NZrZe1t8W7mrPLtWsy3nguRV2oSR0dUNnr0DucNwA-TOnysxYSOzLisEVozLwlmbS3bSlYq4zovK0mVEFWRdbUQZSX40hZlriutt1tZbQrRFEW5k3K7UZmpSZAUO6pESbks1hspNnLX5CVVORX5BTaCe2Xs2tr3ftrbzMQ4cl0WothmVjVs4_xAiBx_4PxxupzilIV64qya8RphI6yJKX5VSSZZro-zi5fgXWLX4nExb3btPrtxJhllzScHVK5dDMzGYOsfz8ukbmzW2vdA56nN8rcagn9lnYDOs7gIdJ7F_w4AAP__UrIrhg">