diff options
author | Jakub Jelinek <jakub@redhat.com> | 2015-11-26 10:52:48 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2015-11-26 10:52:48 +0100 |
commit | 62775f0d9a513654b62e8a83e13c8d1324635ee4 (patch) | |
tree | a5817c2d93ec5378d7f944232b39f405296aa94f /gcc/tree-nested.c | |
parent | bf8e1b52f72d079d99173a6742f0070c632cc736 (diff) | |
download | gcc-62775f0d9a513654b62e8a83e13c8d1324635ee4.zip gcc-62775f0d9a513654b62e8a83e13c8d1324635ee4.tar.gz gcc-62775f0d9a513654b62e8a83e13c8d1324635ee4.tar.bz2 |
re PR c++/68508 (Internal compiler error with parentheses around return value in C++14 with ASan enabled)
PR c++/68508
* cp-tree.h (cp_ubsan_maybe_instrument_downcast): Add INTYPE argument.
* cp-ubsan.c (cp_ubsan_maybe_instrument_downcast): Likewise. Use
it instead of or in addition to TREE_TYPE (op). Use
is_properly_derived_from, return NULL_TREE if TREE_TYPE (intype) and
TREE_TYPE (type) are the same type minus qualifiers.
* typeck.c (build_static_cast_1): Adjust callers.
* g++.dg/ubsan/pr68508.C: New test.
From-SVN: r230928
Diffstat (limited to 'gcc/tree-nested.c')
0 files changed, 0 insertions, 0 deletions