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

--- Comment #1 from beachboy44 at me dot com ---
Possibly related cases that also fail to compile:

template<typename T>
using F = decltype([]{ return T{0}; });

auto g = [](auto x) {
    using G = F<decltype(x)>;
    return G{}();
};

https://godbolt.org/z/tSwWUF


auto f = []{ return 0; };

template<typename>
using F = decltype(f);

auto g = [](auto x) {
    using G = F<decltype(x)>;
    return G{}();
};

https://godbolt.org/z/w20oxP

Reply via email to