https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113544
Bug ID: 113544 Summary: [14 Regression] bogus incomplete type error with dependent data member in local class in generic lambda since r14-278 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ppalka at gcc dot gnu.org Target Milestone: --- template<class T> void f() { [](auto parm) { struct type { decltype(parm) x; }; }; } template void f<int>(); <stdin>: In instantiation of ‘struct f<int>()::<lambda(auto:1)>::type’: <stdin>:6:5: required from ‘void f() [with T = int]’ <stdin>:10:22: required from here <stdin>:5:22: error: ‘f()::<lambda(auto:1)>::type::x’ has incomplete type <stdin>:5:22: error: invalid use of dependent type ‘decltype (parm)’