https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104958
--- Comment #2 from Andrew Pinski ---
A C++ example with lamdbas which shows the same issue here (the IR is basically
the same):
int outer;
auto fn1(int val = 0){
return [&]{
outer = val; // invalid
};
}
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104958
Andrew Pinski changed:
What|Removed |Added
CC||ozixtheorange at gmail dot com
--- Comm
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104958
Martin Sebor changed:
What|Removed |Added
Last reconfirmed||2022-03-16
Keywords|