diff options
author | Marek Polacek <polacek@redhat.com> | 2017-04-10 17:18:15 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2017-04-10 17:18:15 +0000 |
commit | 98a7a34e26ec1e809712dbbebb0193f2ac545018 (patch) | |
tree | f72e0e27e76d0c06c364498bb0651309c7d8946a /gcc/fortran | |
parent | 46bf3f84b6a117d94ac7479c9e13e05af82d9931 (diff) | |
download | gcc-98a7a34e26ec1e809712dbbebb0193f2ac545018.zip gcc-98a7a34e26ec1e809712dbbebb0193f2ac545018.tar.gz gcc-98a7a34e26ec1e809712dbbebb0193f2ac545018.tar.bz2 |
re PR sanitizer/80348 (UBSAN: compile time crash in ubsan_instrument_division)
PR sanitizer/80348
* typeck.c (cp_build_binary_op): Use NULL_TREE instead of NULL. Set
ORIG_TYPE earlier and not only when shortening.
* g++.dg/ubsan/div-by-zero-3.C: New test.
From-SVN: r246812
Diffstat (limited to 'gcc/fortran')
0 files changed, 0 insertions, 0 deletions