[Bug c++/108747] Dangerous optimization when optimization is disabled by flag -O0

alireza at hexosys dot com gcc-bugzilla@gcc.gnu.org
Fri Feb 10 02:20:10 GMT 2023


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108747

--- Comment #3 from alireza at hexosys dot com ---
I Agree with you that the user has made mistake.

but why does the compiler does this optimization that can change the behavior
of the code, when we explicitly asked her to don't do any optimization when we
set the -O0?


More information about the Gcc-bugs mailing list