| Issue |
56466
|
| Summary |
Regression on std::span
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
Arthapz
|
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
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs