https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102802
Fedor Chelnokov <fchelnokov at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |WONTFIX Status|NEW |RESOLVED --- Comment #4 from Fedor Chelnokov <fchelnokov at gmail dot com> --- Thanks for TC's explanation! This is an equivalent code to the question, but without lambdas: gcc.godbolt.org/z/38T35Yfvs GCC is correct in processing the original code, closing the issue.