blob: 080847ca11ce33f362b9669e1831d95112d91294 [file] [log] [blame]
// PR 99030 ICE with generic lambda accessing local extern
// { dg-do compile { target c++14 } }
void foo ()
{
extern int a;
[] (auto b) { a; } (1);
}
template<typename T> void bar ()
{
extern T a;
[] (auto b) { a; } (1);
}
template void bar<int> ();