Hi all
Using gdb in the following c++ code:
template
struct Wrap{
T w;
};
int main() {
auto l1 = [x = 5](int a){return x+a;};
auto l2 = [x = 6](int a){return x+1;};
auto l3 = [x = 7](){return 0.5;};
Wrap w1{l1};
Wrap w2{l2};
Wrap w3{l3};
return 0;
}
(gdb) info types Wrap
On Wed, Nov 10, 2021 at 9:26 AM Joel Sherrill wrote:
>
> Thanks for the quick reply.
>
> On Wed, Nov 10, 2021 at 8:20 AM Jonathan Wakely wrote:
> >
> > On Wed, 10 Nov 2021 at 14:08, Joel Sherrill wrote:
> > >
> > > Hi
> > >
> > > It's been a while since I tried this and it appears things have
> >
Snapshot gcc-9-2021 is now available on
https://gcc.gnu.org/pub/gcc/snapshots/9-2021/
and on various mirrors, see http://gcc.gnu.org/mirrors.html for details.
This snapshot has been generated from the GCC 9 git branch
with the following options: git://gcc.gnu.org/git/gcc.git branch