[Bug c++/58181] A bug in lambda expression

2013-08-17 Thread daniel.kruegler at googlemail dot com
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

[Bug c++/58181] A bug in lambda expression

2013-08-17 Thread fimbul77 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58181 fimbul77 at gmail dot com changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--

[Bug c++/58181] A bug in lambda expression

2013-08-17 Thread fimbul77 at gmail dot com
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