<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/56466>56466</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Regression on std::span
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Arthapz
</td>
</tr>
</table>
<pre>
LLVM 14 don't compile with libc++
```cpp
struct Foo {
};
static const auto foo = std::vector<Foo> {
Foo{},
Foo{},
Foo{}
};
std::span<const Foo> bar() {
return foo;
}
int main()
{
auto b = bar();
return 0;
}
```
it works with llvm13 and all other compilers
https://godbolt.org/z/5GGcdqfa8
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyNUsty3CAQ_Bp0obKFgNXjoMPaG_viXHLIHQkkEbNCgZG34q_P6LG25UqqohohDTDdPTS117-rp6cf32gqqfYD4TnQxl9G6wy9Wuips3VD-N0c7EzYaRsztkYzjutMhDA1QB-8pyTf9tL52QryMxE7iAgKbINkQwSqJvC0nWvFmUbQRJwwXkwDPhBxj6hEfN0Dz3OYIy6____Zf4rZKOOoBiRcVW20tQqEF4SXewHBwBSGWfU72BvDMtoB6EXZYa2-bfkAsbRdL02_kXxS9oGJ_YXn5sOOFujVh-e4GeheLqmgatBUOUc99CbcLA5xregBxjgfAH_A6LyuvYODDx1mr_geHx8b_atVRaIroUtRqgQsOFN9N10wMVo_UIzdKSZTcNUnYNQz1Qckx2TWtX2-jMH_RK8xtTFOJs6UmcyypK_StNW5lLJsRcukLsu2kEbpTBZSNHnRJk7VxsWKHPGO8sFc6QKB_-R4TmzFGecsT1lapEeeHlrNClGazLRZmommIJIZtMgdZh1zx0moFkn11EVcdDZCfF9U2Gs3GLPQIT4a2PtQnQL0anxNFupqkf4HExTzRA">