public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "avi at scylladb dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/105373] miscompile involving lambda coroutines and an object bitwise copied instead of via the copy constructor Date: Mon, 25 Apr 2022 11:47:53 +0000 [thread overview] Message-ID: <bug-105373-4-jCVd7ynZ6c@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-105373-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105373 --- Comment #2 from Avi Kivity <avi at scylladb dot com> --- I see it in 006t.gimple too: try { _50 = frame_ptr->__closure; _51 = _50->__this; frame_ptr->D.2159793_4_7.__this = _51; frame_ptr->D.2159793_4_7.__old4 = frame_ptr->D.2159792_4_7; _52 = frame_ptr->__closure; _53 = _52->__newtabs; frame_ptr->D.2159793_4_7.__newtabs = _53; newtabs is captured by reference, so the copy from _53 is reasonable. But old4 is captured by value, and so should go through the copy constructor. Looking at references to old3, it always has its address taken and then passed to the copy constructor.
next prev parent reply other threads:[~2022-04-25 11:47 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-04-25 9:31 [Bug c++/105373] New: " avi at scylladb dot com 2022-04-25 11:14 ` [Bug c++/105373] " avi at scylladb dot com 2022-04-25 11:47 ` avi at scylladb dot com [this message] 2022-04-25 12:21 ` avi at scylladb dot com 2022-04-25 19:37 ` iains at gcc dot gnu.org 2022-04-26 9:38 ` avi at scylladb dot com 2022-04-26 9:43 ` avi at scylladb dot com 2022-04-26 10:07 ` avi at scylladb dot com 2022-04-28 14:29 ` avi at scylladb dot com 2022-04-28 14:52 ` avi at scylladb dot com 2022-04-28 14:59 ` avi at scylladb dot com 2022-04-28 17:28 ` avi at scylladb dot com 2022-04-28 18:59 ` iains at gcc dot gnu.org 2022-04-29 19:54 ` iains at gcc dot gnu.org 2022-05-01 14:47 ` avi at scylladb dot com 2022-05-06 11:25 ` avi at scylladb dot com 2022-11-21 13:01 ` avi at scylladb dot com 2022-12-04 14:28 ` avi at scylladb dot com 2022-12-10 12:00 ` iains at gcc dot gnu.org 2022-12-10 12:02 ` iains at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-105373-4-jCVd7ynZ6c@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).