This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/42737] [c++0x] error returning a lambda function
- From: "jwakely dot gcc at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jan 2010 10:21:48 -0000
- Subject: [Bug c++/42737] [c++0x] error returning a lambda function
- References: <bug-42737-18668@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from jwakely dot gcc at gmail dot com 2010-01-14 10:21 -------
Obviously it shouldn't ICE, but I don't think this code is valid: the type of a
lambda expression is a class type not a function pointer, and I don't think
it's convertible to a function pointer.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42737