Optimization problem for overloaded class-specific new operators
Sebastian Bauer
mail@sebastianbauer.info
Tue Feb 26 19:58:00 GMT 2019
Am 2019-02-26 17:51, schrieb Jonathan Wakely:
>> Since this is a strange construct anyway, I'm not sure if this is just
>> some undefined behaviour (in which gcc is right to optimize it out) or
>> a
>> real 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
More information about the Gcc-help
mailing list