https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85492
Bug ID: 85492 Summary: riscv64: endless when throwing an exception from a constructor Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: aurelien at aurel32 dot net Target Milestone: --- Created attachment 44002 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44002&action=edit test case The attached C++ code, extracted from googletest, tries to throw an exception from a constructor. On riscv64, the processes goes into an endless loop using 100% of the CPU instead. This is reproducible even at -O0, with GCC 7.3.0 and GCC 8 snapshot from 20180414, under both QEMU and real hardware (SiFive Unleashed).