https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83584
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Actually there is a common extension mentioned in N1570 about this case. J.5.7 [Function pointer casts] 1 A pointer to an object or to void may be cast to a pointer to a function, allowing data to be invoked as a function (6.5.4). 2 A pointer to a function may be cast to a pointer to an object or to void, allowing a function to be inspected or modified (for example, by a debugger) (6.5.4). ----- CUT ---- This is not about undefined behavior being commonly defined either.