public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/105426] New: [wrong-code][regression][coroutines] range-for temporaries are not persisted in coroutines
@ 2022-04-28 15:56 avi at scylladb dot com
  2022-04-28 15:56 ` [Bug c++/105426] " avi at scylladb dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: avi at scylladb dot com @ 2022-04-28 15:56 UTC (permalink / raw)
  To: gcc-bugs

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.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-04-29  8:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-28 15:56 [Bug c++/105426] New: [wrong-code][regression][coroutines] range-for temporaries are not persisted in coroutines avi at scylladb dot com
2022-04-28 15:56 ` [Bug c++/105426] " avi at scylladb dot com
2022-04-28 18:55 ` iains at gcc dot gnu.org
2022-04-29  6:36 ` rguenth at gcc dot gnu.org
2022-04-29  6:36 ` cvs-commit at gcc dot gnu.org
2022-04-29  6:37 ` [Bug c++/105426] [12/13 Regression] " rguenth at gcc dot gnu.org
2022-04-29  6:40 ` iains at gcc dot gnu.org
2022-04-29  8:29 ` cvs-commit at gcc dot gnu.org
2022-04-29  8:30 ` iains at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).