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

--- Comment #3 from alex at clmbng dot com ---
Minimal test-case:

struct A { int fun(); };

template <auto> 
consteval auto aaa() { return A{}; }

template <int> 
using aa = decltype(aaa<[]{}>());

template <int N> 
A a = aa<N>{};

int main() 
{
    return a<42>.fun();
}

Reply via email to