Clang crashes when parsing operator== for an enum parameter with a bool enum base and no enumerator list #56560
Labels
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
crash
Prefer [crash-on-valid] or [crash-on-invalid]
llvm commit I have checked out where this is broken (not necessarily the cause): 4a40fa8
Repro steps
test.cpp:
LLVM_ENABLE_ASSERTIONS:BOOL=ON
clang++ -c test.cpp -o test
Expected result:
clang should compile the file
Actual result:
clang crashes with the assertion
The full stacktrace is in the attached stacktrace.txt.
(I had to change the extension of the
.cpp
file and the.sh
file as GitHub doesn't support those file type extensions as attachments)stacktrace.txt
test-f893c2.cpp.txt
test-f893c2.sh.txt
The text was updated successfully, but these errors were encountered: