Hi folks, the following C++ snippet used to compile, but doesn't anymore with current gcc trunk. Hope this helps!
Thanks,
Sebastien Alaiwan
-----------------
// simple.cpp
int getValueOfSix()
{
return 6;
}
template<int A>
void f()
{
auto const c = getValueOfSix();
auto lambda = [&] ()
{
auto a = c;
auto b = c;
};
}
void g()
{
f<0>();
}
