C++ PATCH for c++/58083 (ICE with lambda in default argument)

Jason Merrill jason@redhat.com
Sun Aug 18 04:11:00 GMT 2013


The standard says that lambdas go in the enclosing block, class or 
namespace scope, but also that default arguments aren't parsed until the 
class is complete.  So we need to accept pushing a lambda into a 
complete class.

Tested x86_64-pc-linux-gnu, applying to trunk and 4.8.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 58083.patch
Type: text/x-patch
Size: 2029 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130818/61979478/attachment.bin>


More information about the Gcc-patches mailing list