https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120417
--- Comment #11 from Simon Sobisch <simonsobisch at gnu dot org> --- Note: it only does not work with optimizations... but I understand the point of UB - seems we got "away lucky" since quite some time for this, but with C23 default the function pointers need to be adjusted in any case, so maybe that's the time to fix ...