https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105426

            Bug ID: 105426
           Summary: [wrong-code][regression][coroutines] range-for
                    temporaries are not persisted in coroutines
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: avi at scylladb dot com
  Target Milestone: ---

The attached reproducer, compiled with:


    g++ --std=c++20 coroutine-unpersisted-range-for-temporary.cc -g -O3


generates correct results for gcc before 15a176a833f and for clang, but
incorrect results in 15a176a833f and later.

Reply via email to