lto-fail.c:1:1: internal compiler error: in dwarf2out_die_ref_for_decl, at dwarf2out.cc:6081
1 | int main(void) { return 0; }
| ^~~
Please submit a full bug report, with preprocessed source (by using -freport-bug).
See <https://gcc.gnu.org/bugs/> for instructions.
Repro case:
The toolchain used was the one released at https://github.com/Windows-on-ARM-Experiments/msys2-woarm64-build/
Symptoms: