C++ PATCH for c++/67941 (UBsan error with empty lambda)

Jason Merrill jason@redhat.com
Wed Nov 25 18:59:00 GMT 2015


The _FUN function returned by the lambda conversion operator calls the 
op() with a null object argument, which would be undefined behavior for 
user code, but we can get away with it internally since it isn't 
observable.  Tell UBsan to ignore it.

Tested x86_64-pc-linux-gnu, applying to trunk and 5.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 67941.patch
Type: text/x-patch
Size: 1127 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20151125/87975b42/attachment.bin>


More information about the Gcc-patches mailing list