[Bug c++/115550] [coroutines] Reference to reference in promise constructor template argument corresponding to coroutine *this
ppalka at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jul 17 23:04:23 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115550
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Depends on| |104981
Last reconfirmed| |2024-07-17
Ever confirmed|0 |1
CC| |ppalka at gcc dot gnu.org
--- Comment #1 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Confirmed, thanks for the detailed bug report.
> This may have the same underlying cause as bug 104981. It would not be surprising if some internal compiler code removed the outer reference and expected to be left with a type that is not a reference. I can't preclude this being just a coincidence, however.
You're spot on, the proposed patch in PR104981#c3 seems to also fix this.
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104981
[Bug 104981] [coroutines] Internal compiler error when promise object's
constructor takes a base class of the object parameter
More information about the Gcc-bugs
mailing list