[Bug c++/91309] Fails to compile when initializing template argument with immediately-invoked lambda

2020-01-28 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91309 Martin Liška changed: What|Removed |Added Keywords||rejects-valid Status|UNCONFIR

[Bug c++/91309] Fails to compile when initializing template argument with immediately-invoked lambda

2019-09-04 Thread beachboy44 at me dot com
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 using F = decltype([]{ return T{0}; }); auto g = [](auto x) { using G = F; return G{}(); }; https://godbolt.org/z/tSwWUF auto