https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95418
Bug ID: 95418 Summary: Static assert going off on MinGW Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libfortran Assignee: unassigned at gcc dot gnu.org Reporter: markus.boeck02 at gmail dot com Target Milestone: --- Since commit "i386: Use generic division to generate INEXACT exception" (d3a1459cd4f2d4997fb53e34ddef72e91a7855c1) libgfortran is not able to be compiled with the target x86_64-w64-mingw32. This is due to a _Static_assert going off in fpu-target.h. The exact error message is: In file included from ../../../libgfortran/runtime/fpu.c:29: ./fpu-target.h:91:1: error: static assertion failed: "GFC_FPE_STATE_BUFFER_SIZE is too small" 91 | _Static_assert (sizeof(struct fenv) <= (size_t) GFC_FPE_STATE_BUFFER_SIZE, | ^~~~~~~~~~~~~~ Reverting the above commit makes compilation succeed.