[Bug c++/81410] O3 breaks code

gcc at sjor dot sg gcc-bugzilla@gcc.gnu.org
Wed Jul 12 11:41:00 GMT 2017


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

--- Comment #3 from Sjors Gielen <gcc at sjor dot sg> ---
A trivial workaround is put inside the first loop:

  std::cout << "";

I suppose this prevents loop optimization by introducing potential side
effects.


More information about the Gcc-bugs mailing list