re PR sanitizer/80973 (ICE with lambda and -fsanitize=undefined)
authorJakub Jelinek <jakub@redhat.com>
Tue, 13 Jun 2017 20:05:20 +0000 (22:05 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 13 Jun 2017 20:05:20 +0000 (22:05 +0200)
commitf31a8339835b2dda14b622cf35555ea666966a9a
treeb9c27822cedec984109a2bf21ac94eb5c0961a8d
parentc60dc05326dbf6960dbaa898db854fd062afeecd
re PR sanitizer/80973 (ICE with lambda and -fsanitize=undefined)

PR c++/80973
* cp-gimplify.c (cp_genericize_r): Don't instrument MEM_REF second
argument even if it has REFERENCE_TYPE.

* g++.dg/ubsan/pr80973.C: New test.

From-SVN: r249174
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ubsan/pr80973.C [new file with mode: 0644]