Re: c++: Lambda context mangling

2022-10-07 Thread Jason Merrill via Gcc-patches
On 10/7/22 08:27, Nathan Sidwell wrote: VAR and FIELD decls can become part of a lambda context, when the lambda is 'attached' to that entity (It's a C++20 ODR thing that was discovered with modules, but is actually separate.)  We were not marking those decls as substitution candidates, leading

c++: Lambda context mangling

2022-10-07 Thread Nathan Sidwell via Gcc-patches
0:00 2001 From: Nathan Sidwell Date: Fri, 30 Sep 2022 08:43:10 -0700 Subject: [PATCH 1/3] c++: Lambda context mangling VAR and FIELD decls can become part of a lambda context, when the lambda is 'attached' to that entity (It's a C++20 ODR thing that was discovered with modules, but is actually sepa