On Thu, 4 May 2023 at 10:59, LIU Hao via Gcc-help <gcc-help@xxxxxxxxxxx> wrote: > > 在 2023/5/4 17:45, Georg-Johann Lay 写道: > > My question: Is this a GCC problem, or a problem with the code and sequence points? > > I recommend you learn about smart pointers and stop managing object lifetime by hand. This is a GCC bug and has nothing to do with any stylistic problem in the code.