C++ PATCH for c++/49554 (bogus error with lambda in template)

Jason Merrill jason@redhat.com
Wed Jun 29 17:36:00 GMT 2011


The failure in this testcase was happening because we were trying to 
evaluate the capture decltype again when instantiating the lambda 
operator(), but it only works when we're still in the enclosing function 
context.  Fixed by basically waiting to copy the type over at 
instantiation time rather than copy the dependent type at template 
definition time.

Tested x86_64-pc-linux-gnu, applied to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 49554.patch
Type: text/x-patch
Size: 4622 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110629/2b5bb373/attachment.bin>


More information about the Gcc-patches mailing list