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

    <tr>
        <th>Summary</th>
        <td>
            [libcxx] vector.insert() code will core dump in std=c++11
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          joyhou-hw
      </td>
    </tr>
</table>

<pre>
    The following code in std=c++11 will core dump in the insert() call with using libc++ libs.   while c++14 is OK. 

initializer_list  is supported in the C++11, is this something wrong in the code ?
test in  llvm 15.0.4.
```
#include <vector>
template < class Allocator >
int test_it(){
    bool rv= true;
    using obj_type = std::vector< bool, Allocator >   ;
 typename obj_type::iterator  v0 ;
    typename obj_type::const_iterator cv0 = v0 ;
    std::initializer_list < bool > v1= {0};
    obj_type obj;
    typename obj_type::iterator x =   obj.insert ( cv0, v1 );
 return rv;
}

int main () {
  int w = test_it< std::allocator<bool> >() ;
  return w;
}

```

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMVEtvozAQ_jXDZVRkbAjkwCEJzWUPe9l7ZcAJjgyObBPa_fUrG0iaVpVWivKa-R7zYLi18jwIUUK2h6yK-Og6bcqL_uj0-NJNUa3bj_JPJ_CkldKTHM7Y6FagHNC6FljVAN0D3ScJTlIpbLQR2I791We4zidaYRzQAugWG64UTtJ1OFpPpWS94P1XGyPi1EklcGVNUVr8_StGIBWQ3fwuB-kkV_KvMG9KWoc-yY7XqzZOtKvwYTUG9OATXOezdC9c56Uno4fzmhtKAnac-Z2wzkdQqVuPSRaTOI0XAxuyvOaflMmhUWNAH26icdoAe11p-qviLoSwUdxa3CmlG-60wXuWHBx6wTe5NAny_RxBRKy1VmhuwCp0ZhTAPsXmFur68uY-rl6lmkeyA7ZbrRwCg-_AkzQiPqg8euC9uFPNFNIJE_LxRvBJ-AdAo4dQxgJrAqz6hr57_DbG1W5weEs8GPI9gbx6IrhXrOvL__i6O3oPfgJBPK8lAi28Ud-gW4K--3dCI9xohtD85S9v5GkNHfZcDrgs96fB-dAU1NbRssOjcL6OAtghjIe9hn1YaB4lLRamnxx82caoLVm7ZVseiTLZFDlNtznJoq7MORc8ybNTlmY8P7E24yQvClLXLN_StohkSQllZEMJKWhBs7jZMrJhaX7aNEneJAmkRPRcqtg_ErE250haO4pyw1JCIsVroWy4IZQOYsIQBEr9STGlx7zU49lCSvyg7YPFSafC8fGX4P0dsgrn1Y2f74Z_Pr_fly8XKBqNKjvnrtb3mR6BHs_SdWMdN7oHevSqy8fL1eiLaBzQY_BqgR5DLf8CAAD__4SMgu4">