public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/95117] New: Segmentation fault with static await_ready() or await_resume()
@ 2020-05-13 20:40 oficsu at gmail dot com
  2021-11-15  4:47 ` [Bug c++/95117] " oficsu at gmail dot com
  0 siblings, 1 reply; 2+ messages in thread
From: oficsu at gmail dot com @ 2020-05-13 20:40 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 95117
           Summary: Segmentation fault with static await_ready() or
                    await_resume()
           Product: gcc
           Version: 10.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: oficsu at gmail dot com
  Target Milestone: ---

Created attachment 48527
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48527&action=edit
Minimal example

The attached archive contains a minimal example and a command that leads to an
internal compiler error in GCC 10 and later

Also, you can see the error on godbolt for gcc 10.1.0:
https://godbolt.org/z/CsJ4nG
The same error is reproducing in trunk version from godbolt:
https://godbolt.org/z/CsJ4nG


Working Draft contains the following definitions:
await-ready is the expression e.await_­ready(), contextually converted to bool.
...
await-suspend is the expression e.await_­suspend(h), which shall be a prvalue
of type void, bool, or std​::​coroutine_­handle<Z> for some type Z.
...
await-resume is the expression e.await_­resume().

Most likely the definition await_ready() and await_resume() as static is
ill-formed and should lead to a compilation error, but not to an segmentation
fault. BUT, please note that await-suspend is defined in the same way, but this
is compiled fine, so I'm not sure which behavior is right

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

* [Bug c++/95117] Segmentation fault with static await_ready() or await_resume()
  2020-05-13 20:40 [Bug c++/95117] New: Segmentation fault with static await_ready() or await_resume() oficsu at gmail dot com
@ 2021-11-15  4:47 ` oficsu at gmail dot com
  0 siblings, 0 replies; 2+ messages in thread
From: oficsu at gmail dot com @ 2021-11-15  4:47 UTC (permalink / raw)
  To: gcc-bugs

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

Ofee Oficsu <oficsu at gmail dot com> changed:

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

--- Comment #1 from Ofee Oficsu <oficsu at gmail dot com> ---
There's no ICE since GCC 10.2

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

end of thread, other threads:[~2021-11-15  4:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-13 20:40 [Bug c++/95117] New: Segmentation fault with static await_ready() or await_resume() oficsu at gmail dot com
2021-11-15  4:47 ` [Bug c++/95117] " oficsu at gmail dot com

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).