Closed
Description
The following snippet causes llvm to crash:
struct Wrap {
enum Things {
Value1,
Value2
};
};
using enum Wrap::Things;
int main() {
int i = ( Value1 | Value2 );
}
Removing the brackets
int i = Value1 | Value2;
is a workaround
It appears to be related to #54746
original source, preprocessed file, run script, and stdout log attached:
llvm_crash.zip
godbolt link:
https://godbolt.org/z/8qjjajPn9