re PR sanitizer/66977 (-fsanitize=shift may introduce uninitialized variables)
authorMarek Polacek <polacek@redhat.com>
Fri, 31 Jul 2015 11:12:57 +0000 (11:12 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 31 Jul 2015 11:12:57 +0000 (11:12 +0000)
commitec043522ffe0847f1917b5065d3b72c29d601bef
tree010ad1c7522a6e03f5fae865df755dbe7f564f09
parentb5d3d7871c2e395fb7162712aebb81c90da3689b
re PR sanitizer/66977 (-fsanitize=shift may introduce uninitialized variables)

PR sanitizer/66977
* typeck.c (get_member_function_from_ptrfunc): Don't sanitize
RSHIFT_EXPR.

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

From-SVN: r226440
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ubsan/pr66977.C [new file with mode: 0644]