| Issue |
63758
|
| Summary |
Clang frontend C++ crash when casting `string` to `char[]`
|
| Labels |
|
| Assignees |
|
| Reporter |
brutalsavage
|
To quickly reproduce: https://gcc.godbolt.org/z/ve4bK48nb (assertion-trunk)
```cpp
#include <string>
int main() {
int index = 0;
auto words = (char[]) std::to_string(index); // forbids casting to array type according to ISO C++ standard
}
```
Compiling the above code crashes clang `clang++ -x c++ --std=c++20 `, crashes locally using clang-17.0 (a10019a), also on trunk with assertion (see godbolt link)
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs