https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117431
Iain Sandoe <iains at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Iain Sandoe <iains at gcc dot gnu.org> ---
Using the P2900 syntax, as committed to trunk
```
int foo (int x)
{
auto f1 = [] (int y)
pre (y > 0) { return y * y; };
return f1 (x);
}
int main ()
{
return foo (-2);
}
```
this is now working with the trunk implementation.