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