[Bug c++/81410] O3 breaks code

2017-07-12 Thread gcc at sjor dot sg
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81410 --- Comment #3 from Sjors Gielen --- A trivial workaround is put inside the first loop: std::cout << ""; I suppose this prevents loop optimization by introducing potential side effects.

[Bug c++/81410] O3 breaks code

2017-07-12 Thread m-ou...@m-ou.se
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81410 Maurice Bos changed: What|Removed |Added CC||m-ou...@m-ou.se --- Comment #2 from Mauric

[Bug c++/81410] O3 breaks code

2017-07-12 Thread gcc at sjor dot sg
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81410 --- Comment #1 from Sjors Gielen --- This is on x86_64 by the way. Doesn't happen with -m32.