C++ PATCH for c++/49260 (lambda-eh2.C failure on several targets)

Jason Merrill jason@redhat.com
Wed Jun 22 16:07:00 GMT 2011


This failure was happening on all targets that don't use either CFI 
assembler directives or asynchronous unwind tables: we were mistakenly 
deciding that the _FUN thunk for returning from the lambda function 
pointer conversion operator couldn't throw because build_call_a wasn't 
setting cp_function_chain->can_throw.  There seems to be no reason to 
set that flag in build_cxx_call rather than build_call_a, so I've moved it.

Tested x86_64-pc-linux-gnu, applying to trunk.  Will also apply to 4.6.2 
once branch unfreezes.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 49260.patch
Type: text/x-patch
Size: 1629 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110622/3ecb8697/attachment.bin>


More information about the Gcc-patches mailing list