Issue 135472
Summary [libc++] Cannot construct `string` from `volatile` char array
Labels libc++
Assignees
Reporter hewillk
    As far as I know, both of the following should be well-formed.
However, libc++ seems to always expect the char array not to be `volatile`, which causes a hard error in function body.

```
#include <string>

volatile char vs[42] = {};
std::string s1(std::begin(vs), std::end(vs));
std::string s2(std::from_range, vs);
```

_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to