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

Nathaniel Shead <nshead at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|                            |2026-04-05
     Ever confirmed|0                           |1

--- Comment #3 from Nathaniel Shead <nshead at gcc dot gnu.org> ---
>From PR124782, here's another testcase that fails with the same error without
needing a lambda:

export module foo;
template <typename Args> struct invoke_result {};
template <class Type> struct foo {};
auto fn(auto&& arg) -> foo<invoke_result<decltype(arg)>> {
  invoke_result<decltype(arg)> a;
  return {};
}

Reply via email to