Open
Description
Compiling the following reduced program will result in clang crashing with the error in the title.
typedef long a;
namespace b {
namespace c {
namespace d {
namespace e {
namespace {
struct g {};
int h(g, bool, char *);
} // namespace
int i(double f, char *j) {
a bits(f);
bool k(bits);
g l;
return h(l, k, j);
}
} // namespace e
} // namespace d
} // namespace c
} // namespace b
I can compile the program with this command to see the crash:
clang++ -mno-sse2 reduced-bug.cpp
here's a godbolt reproduction:
I know I can avoid the crash if I put in a definition for h
or enable sse2 instructions, I'm not looking for how to work around the crash, just reporting it so it can be fixed, as in my actual non-reduced program figuring out how to work around the crash is much less obvious.