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

2023-02-09 Thread alireza at hexosys dot com via Gcc-bugs
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

[Bug c++/108747] New: Optimization makes user mistake more dangerous when optimization is disabled by flag -O0

2023-02-09 Thread alireza at hexosys dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108747 Bug ID: 108747 Summary: Optimization makes user mistake more dangerous when optimization is disabled by flag -O0 Product: gcc Version: og11 (devel/omp/gcc-11) Status: