No, but it can often expose undefined behavior that doesn't stop a program from "working" on lower optimization levels.
Which is why I'm in support of always building your own software with -O3.
Which is why I'm in support of always building your own software with -O3.