On Sun, 29 Sept 2024 at 23:06, Jonathan Wakely wrote: > > > > On Sun, 29 Sept 2024, 17:22 Jaroslav Fojtik via cfarm-users, > <cfarm-users@lists.tetaneutral.net> wrote: >> >> >> It is really a trap when something expected to work stops working, after new >> GCC release. >> And everything still works fine on your own computer. > > > Well the code has undefined behaviour, which is definitely not portable. > > Doesn't UBsan diagnose this mistake?
UBsan doesn't diagnose it, but the code crashes for me with *every* version of GCC I tried, from GCC 6.1 onwards. It's not a problem with GCC 14, it's just broken code. Nothing to see here, move along. _______________________________________________ cfarm-users mailing list cfarm-users@lists.tetaneutral.net https://lists.tetaneutral.net/listinfo/cfarm-users