[Bug c++/42737] [c++0x] error returning a lambda function

jwakely dot gcc at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Jan 14 10:22:00 GMT 2010



------- 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



More information about the Gcc-bugs mailing list