https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84824
--- Comment #1 from linzj <manjian2006 at gmail dot com> --- According to the tree generated, the problem is sourced from fail to remove the lambda function call. But the constant value is deduced and propagated. In case of the side effect?