public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/106713] [11/12/13 Regression] Coroutine regression in GCC 11.3.0: if (co_await ...) crashes with a jump to ud2 since r12-3529-g70ee703c479081ac
       [not found] <bug-106713-4@http.gcc.gnu.org/bugzilla/>
@ 2022-08-30  3:00 ` gcc-bugzilla at decltype dot org
  2022-09-07 14:47 ` cvs-commit at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: gcc-bugzilla at decltype dot org @ 2022-08-30  3:00 UTC (permalink / raw)
  To: gcc-bugs

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

Pablo Busse <gcc-bugzilla at decltype dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gcc-bugzilla at decltype dot org

--- Comment #4 from Pablo Busse <gcc-bugzilla at decltype dot org> ---
Duplicate of https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106188.

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

* [Bug c++/106713] [11/12/13 Regression] Coroutine regression in GCC 11.3.0: if (co_await ...) crashes with a jump to ud2 since r12-3529-g70ee703c479081ac
       [not found] <bug-106713-4@http.gcc.gnu.org/bugzilla/>
  2022-08-30  3:00 ` [Bug c++/106713] [11/12/13 Regression] Coroutine regression in GCC 11.3.0: if (co_await ...) crashes with a jump to ud2 since r12-3529-g70ee703c479081ac gcc-bugzilla at decltype dot org
@ 2022-09-07 14:47 ` cvs-commit at gcc dot gnu.org
  2022-10-19  7:10 ` [Bug c++/106713] [11/12 " rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-09-07 14:47 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <jason@gcc.gnu.org>:

https://gcc.gnu.org/g:a961ad1b13b9c294d4565344912b8e35ba71b369

commit r13-2524-ga961ad1b13b9c294d4565344912b8e35ba71b369
Author: Arsen ArsenoviÄ <arsen@aarsen.me>
Date:   Sun Sep 4 21:04:23 2022 +0200

    c++: top level bind when rewriting coroutines [PR106188]

    In the edge case of a coroutine not containing any locals, the ifcd/switch
    temporaries would get added to the coroutine frame, corrupting its
    layout. To prevent this, we can make sure there is always a BIND_EXPR at
    the top of the function body, and thus, always a place for our new
    temporaries to go without interfering with the coroutine frame.

    PR c++/106188 - Incorrect frame layout after transforming conditional
statement without top-level bind expression
    PR c++/106713 - if (co_await ...) crashes with a jump to ud2

            PR c++/106188
            PR c++/106713

    gcc/cp/ChangeLog:

            * coroutines.cc (coro_rewrite_function_body): Ensure we have a
            BIND_EXPR wrapping the function body.

    gcc/testsuite/ChangeLog:

            * g++.dg/coroutines/pr106188.C: New test.

    Signed-off-by: Arsen ArsenoviÄ <arsen@aarsen.me>

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

* [Bug c++/106713] [11/12 Regression] Coroutine regression in GCC 11.3.0: if (co_await ...) crashes with a jump to ud2 since r12-3529-g70ee703c479081ac
       [not found] <bug-106713-4@http.gcc.gnu.org/bugzilla/>
  2022-08-30  3:00 ` [Bug c++/106713] [11/12/13 Regression] Coroutine regression in GCC 11.3.0: if (co_await ...) crashes with a jump to ud2 since r12-3529-g70ee703c479081ac gcc-bugzilla at decltype dot org
  2022-09-07 14:47 ` cvs-commit at gcc dot gnu.org
@ 2022-10-19  7:10 ` rguenth at gcc dot gnu.org
  2022-10-19  7:18 ` arsen at aarsen dot me
  2023-03-16 19:46 ` arsen at gcc dot gnu.org
  4 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-10-19  7:10 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[11/12/13 Regression]       |[11/12 Regression]
                   |Coroutine regression in GCC |Coroutine regression in GCC
                   |11.3.0: if (co_await ...)   |11.3.0: if (co_await ...)
                   |crashes with a jump to ud2  |crashes with a jump to ud2
                   |since                       |since
                   |r12-3529-g70ee703c479081ac  |r12-3529-g70ee703c479081ac
           Keywords|                            |C++-coroutines
      Known to work|                            |13.0
           Priority|P3                          |P2

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed on trunk I suppose?

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

* [Bug c++/106713] [11/12 Regression] Coroutine regression in GCC 11.3.0: if (co_await ...) crashes with a jump to ud2 since r12-3529-g70ee703c479081ac
       [not found] <bug-106713-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2022-10-19  7:10 ` [Bug c++/106713] [11/12 " rguenth at gcc dot gnu.org
@ 2022-10-19  7:18 ` arsen at aarsen dot me
  2023-03-16 19:46 ` arsen at gcc dot gnu.org
  4 siblings, 0 replies; 5+ messages in thread
From: arsen at aarsen dot me @ 2022-10-19  7:18 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Arsen Arsenović <arsen at aarsen dot me> ---
Yes, this and https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106188 both.

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

* [Bug c++/106713] [11/12 Regression] Coroutine regression in GCC 11.3.0: if (co_await ...) crashes with a jump to ud2 since r12-3529-g70ee703c479081ac
       [not found] <bug-106713-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2022-10-19  7:18 ` arsen at aarsen dot me
@ 2023-03-16 19:46 ` arsen at gcc dot gnu.org
  4 siblings, 0 replies; 5+ messages in thread
From: arsen at gcc dot gnu.org @ 2023-03-16 19:46 UTC (permalink / raw)
  To: gcc-bugs

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

Arsen Arsenović <arsen at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #8 from Arsen Arsenović <arsen at gcc dot gnu.org> ---
Should be fixed on all branches.

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

end of thread, other threads:[~2023-03-16 19:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-106713-4@http.gcc.gnu.org/bugzilla/>
2022-08-30  3:00 ` [Bug c++/106713] [11/12/13 Regression] Coroutine regression in GCC 11.3.0: if (co_await ...) crashes with a jump to ud2 since r12-3529-g70ee703c479081ac gcc-bugzilla at decltype dot org
2022-09-07 14:47 ` cvs-commit at gcc dot gnu.org
2022-10-19  7:10 ` [Bug c++/106713] [11/12 " rguenth at gcc dot gnu.org
2022-10-19  7:18 ` arsen at aarsen dot me
2023-03-16 19:46 ` arsen 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).