| Issue |
53358
|
| Summary |
clang 13.0.1 and clang 14 fail to compile a constexpr std::string_view join
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
sjanel
|
Hello,
I run across a compilation crash in Linux (Ubuntu 18.04) occurring with both
```
clang version 13.0.1-++20220120110844+75e33f71c2da-1~exp1~20220120230854.66
clang version 14.0.0-++20220120091458+c10c74887875-1~exp1~20220120091605.248
```
I tried to reduce the code with `creduce` but got non zero result after the **Interestingness** test commands.
Only **gcc** (I am using version 11) is able to compile the code correctly, **MSVC** is failing as well. The code contains some variadic templates, with pointers to members, and static evaluations.
It's difficult to guess where is the real issue, as the new code stuff I introduced compiles fine on [godbolt](https://godbolt.org/z/fz7rcrvj4).
Based on the crash logs, it seems to happen in clang front end.
[coincenteroptions-4e8175.cpp.gz](https://github.com/llvm/llvm-project/files/7918530/coincenteroptions-4e8175.cpp.gz)
[coincenteroptions-4e8175.sh.gz](https://github.com/llvm/llvm-project/files/7918531/coincenteroptions-4e8175.sh.gz)
Please come back to me if you need more information about this issue.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs