3 ms·
Well, UB is, by definition, non-portable code. Nobody who knows C should be surprised that a different compiler produces different results on such code. Or even
by the_why_of_y 10y ago
Well, UB is, by definition, non-portable code. Nobody who knows C should be surprised that a different compiler produces different results on such code. Or even the same compiler, targeting a different architecture. Or even the same compiler, targeting the same architecture, with different flags.
- kazinator 10y agoA lot of UB is quite portable, like, oh, converting between void * and function pointers, for instance.