https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98555
--- Comment #3 from Rich Felker <bugdal at aerifal dot cx> --- > Due to "undefined behavior" of course means this isn't unexpected That would only be the case if undefined behavior were reached during execution, but it's not. This bug affects programs that do not and cannot call the zero-length function.