https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112867
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |c++-lambda
Summary|[11/12/13/14 Regression] |[11/12/13/14 Regression]
|extern function declaration |extern function declaration
|in function scope behaves |inside a generic
|differently in template |(templated) lambda inside a
| |template function goes
| |wrong
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The extern function definition does not need to have a depedent type either.
So:
```
template <typename T0>
void foo(T0 x)
{
[](auto xs) {
extern void bar(int);
return bar(xs);
}(x);
}
void test(int x) { foo(x); }
```
is enough.