LGTM, thanks. It's interesting that having deduced the return type caused an issue.
On Fri, Jun 13, 2025 at 11:56 AM Giuseppe D'Angelo < giuseppe.dang...@kdab.com> wrote: > Hi, > > Attached is a workaround for > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120644 > > It looks it's a C++ frontend bug, this commit just silences the > regression in the modules testsuite that have been observed after the > introduction of range support for optional in r16-1487-g774ae8734f0e19. > The semantic of the code is otherwise equivalent -- the underlying bug > is not addressed by this. > > > Thank you, > > -- > Giuseppe D'Angelo >