diff options
| author | Jakub Jelinek <jakub@redhat.com> | 2015-11-26 11:21:42 +0100 |
|---|---|---|
| committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2015-11-26 11:21:42 +0100 |
| commit | 31ed6bb92875ad33add972adcd932f340493e13a (patch) | |
| tree | a7971a5250108be5db25a9ac2bcd9734f6fcba0d /libjava/java/sql | |
| parent | 718fafac911ac5e20529168e23683a96449b036c (diff) | |
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: r230933
Diffstat (limited to 'libjava/java/sql')
0 files changed, 0 insertions, 0 deletions
