http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58515
Emmanuel Stapf <manus at eiffel dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Emmanuel Stapf <manus at eiffel dot com> --- Sorry the test code was not the proper one I intended to use since it seems legitimate that gcc optimizes this away due to the absence of side effects.