[Bug c++/88578] Static C++ objects with flexible array members overlap when initializes are non-const

bernd.edlinger at hotmail dot de gcc-bugzilla@gcc.gnu.org
Sun Dec 23 11:44:00 GMT 2018


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

--- Comment #1 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
It turns out, that the order of the static objects is
reversed by -O2, so each test clobbers the previous one
after the assertion is run.
If the test case is changed to run the functions twice
the second run hits an assertion.


More information about the Gcc-bugs mailing list