re PR sanitizer/67941 (calls on function pointer from a captureless lambda cause...
authorJason Merrill <jason@redhat.com>
Wed, 25 Nov 2015 18:58:11 +0000 (13:58 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 25 Nov 2015 18:58:11 +0000 (13:58 -0500)
commit5546e1604519ca18e2e3f96f59ce636bb69d773a
tree424fed6e88da597f1acd33ddc6a02c4aef7f57e2
parent917124c30204d37a19f0f32f1fa14b3ae0add3b1
re PR sanitizer/67941 (calls on function pointer from a captureless lambda cause ubsan warning)

PR c++/67941
* lambda.c (maybe_add_lambda_conv_op): Mark _FUN as
no_sanitize_undefined.

From-SVN: r230897
gcc/cp/ChangeLog
gcc/cp/lambda.c
gcc/testsuite/g++.dg/ubsan/null-6.C [new file with mode: 0644]