[Bug c++/91754] New: [c++2a] Defining member function outside of class body fails to compile when containing class is templated on class-type NTTP

2019-09-12 Thread beachboy44 at me dot com
Version: 9.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: beachboy44 at me dot com Target Milestone: --- https://godbolt.org/z/OQHx2M The following code fails

[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

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

2019-07-31 Thread beachboy44 at me dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: beachboy44 at me dot com Target Milestone: --- https://godbolt.org/z/8O-ItF The following code fails to compile: template struct S {}; template