throwaway786678··on C++26: Trivial infinite loops are no longer undefined behaviour> That your compiler allowed you to get away with it for decades is a compiler bugThat UB was added in C++11.