public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/105301] [11/12 Regression] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'overload' in coro_promise_type_found_p, at cp/coroutines.cc:516 Date: Thu, 28 Apr 2022 12:52:37 +0000 [thread overview] Message-ID: <bug-105301-4-xyffwOAtoH@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-105301-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105301 --- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Iain D Sandoe <iains@gcc.gnu.org>: https://gcc.gnu.org/g:6cae3bb65c873a2191613f7888fe949553a21f9e commit r12-8309-g6cae3bb65c873a2191613f7888fe949553a21f9e Author: Iain Sandoe <iain@sandoe.co.uk> Date: Mon Apr 18 09:21:52 2022 +0100 c++, coroutines: Account for overloaded promise return_value() [PR105301]. Whether it was intended or not, it is possible to define a coroutine promise with multiple return_value() methods [which need not even have the same type]. We were not accounting for this possibility in the check to see whether both return_value and return_void are specifier (which is prohibited by the standard). Fixed thus and provided an adjusted diagnostic for the case that multiple return_value() methods are present. Signed-off-by: Iain Sandoe <iain@sandoe.co.uk> PR c++/105301 gcc/cp/ChangeLog: * coroutines.cc (coro_promise_type_found_p): Account for possible mutliple overloads of the promise return_value() method. gcc/testsuite/ChangeLog: * g++.dg/coroutines/pr105301.C: New test.
next prev parent reply other threads:[~2022-04-28 12:52 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-04-18 6:19 [Bug c++/105301] New: [12 " asolokha at gmx dot com 2022-04-18 9:47 ` [Bug c++/105301] " iains at gcc dot gnu.org 2022-04-18 12:36 ` [Bug c++/105301] [11/12 " jakub at gcc dot gnu.org 2022-04-18 14:07 ` iains at gcc dot gnu.org 2022-04-21 7:51 ` rguenth at gcc dot gnu.org 2022-04-28 12:52 ` cvs-commit at gcc dot gnu.org [this message] 2022-04-28 13:00 ` [Bug c++/105301] [11 " iains at gcc dot gnu.org 2023-05-29 10:06 ` jakub 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-105301-4-xyffwOAtoH@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).