Am 2019-02-26 17:51, schrieb Jonathan Wakely:
Since this is a strange construct anyway, I'm not sure if this is justsome undefined behaviour (in which gcc is right to optimize it out) or areal bug in gcc. Any suggestions (e.g., if a bug shall be reported or not) are appreciated.Your code is invalid, see https://gcc.gnu.org/gcc-6/porting_to.html#flifetime-dse
Thanks a lot for the quick response. It makes perfect sense. Bye Sebastian