https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103248
--- Comment #11 from joseph at codesourcery dot com <joseph at codesourcery dot com> --- Division by zero is undefined behavior for fixed-point types the same way as it is for integer types (but not floating point, at least when infinities and NaN are supported). Treating it like integer division in the compiler would seem reasonable.