http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58181
--- Comment #3 from Daniel Krügler ---
My understanding is that the presented program has undefined behaviour and that
its assertion may fail or may not. The reason being that the outer lambda
expression has return type std::tuple (where LI stands
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58181
fimbul77 at gmail dot com changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58181
--- Comment #1 from fimbul77 at gmail dot com ---
sorry, my code was wrond.
Following the code :
#include
#include
int main()
{
static const auto factory = []() {
int x = 0;
return [=]() mutable {
return std::fo