public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/97438] New: [accepts-invalid] coroutines accepts prmomise type with both return_value() and return_void()
@ 2020-10-15  8:56 avi@cloudius-systems.com
  2020-10-15 12:04 ` [Bug c++/97438] " rguenth at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: avi@cloudius-systems.com @ 2020-10-15  8:56 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 97438
           Summary: [accepts-invalid] coroutines accepts prmomise type
                    with both return_value() and return_void()
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: avi@cloudius-systems.com
  Target Milestone: ---

The standard says:

[dcl.fct.def.coroutine]

6. The unqualified-ids return_­void and return_­value are looked up in the
scope of the promise type. If both are found, the program is ill-formed.


But gcc accepts such a promise type. Clang rejects it.

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

end of thread, other threads:[~2021-01-03  9:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-15  8:56 [Bug c++/97438] New: [accepts-invalid] coroutines accepts prmomise type with both return_value() and return_void() avi@cloudius-systems.com
2020-10-15 12:04 ` [Bug c++/97438] " rguenth at gcc dot gnu.org
2020-10-15 12:29 ` avi@cloudius-systems.com
2020-10-19 19:23 ` cvs-commit at gcc dot gnu.org
2020-10-19 19:28 ` iains at gcc dot gnu.org
2020-10-20  5:43 ` avi@cloudius-systems.com
2021-01-03  9:28 ` cvs-commit 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).