Re: g++ regression: template function accessing a temporary through a lambda

2015-06-02 Thread Jonathan Wakely
On 2 June 2015 at 06:28, wrote: > Hi folks, > the following C++ snippet used to compile, but doesn't anymore with current > gcc trunk. Bug reports belong in Bugzilla, not on this mailing list, and this is already in Bugzilla (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66374)

g++ regression: template function accessing a temporary through a lambda

2015-06-01 Thread ace17
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 void f() { auto const c = getValueOfSix(); auto lambda = [&] () { a