| Issue |
169189
|
| Summary |
clang triggers an "UNREACHABLE executed" assertion (somehow related to typename)
|
| Labels |
clang
|
| Assignees |
|
| Reporter |
pkl97
|
This test program shows the assertion on Godbolt: https://godbolt.org/z/Md3vhYx1j
Interestingly, the assertion vanishes if two "typename" keywords are added in lines 16 and 26: https://godbolt.org/z/Kza9z5eYn
This was actually how I found the issue. clang-tidy check readability-redundant-typename reported the two "typename" keywords to be unnecessary. However after their removal the assertion occurred.
MSVC 17.14 (VS 2022) compiles the code with and without the "typename" keyword.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs