Is optimisation level -O3 dangerous in g++?
In the early days of gcc (2.8 etc.) and in the times of egcs, and redhat 2.96 -O3 was quite buggy sometimes. But this is over a decade ago, and -O3 is not much different than other levels of optimizations (in buggyness). It does however tend to reveal cases where people rely on undefined behavior, … Read more