re PR c++/82872 (ICE in ignore_overflows on __PTRDIFF_MAX__ index)
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 21 Dec 2017 16:22:04 +0000 (16:22 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 21 Dec 2017 16:22:04 +0000 (16:22 +0000)
commit6ffc0c0cf5ada5d74da5c0b68fade4b5ec0e944a
tree874f8fce52c1819336a08cb53bb1286a42af8cb7
parentb3eec1d68892e17c6f788a6ee723d44e97498c9d
re PR c++/82872 (ICE in ignore_overflows on __PTRDIFF_MAX__ index)

PR c++/82872
* convert.c (convert_to_integer_1) <POINTER_TYPE>: Do not return the
shared zero if the input has overflowed.

From-SVN: r255944
gcc/ChangeLog
gcc/convert.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr82872.c [new file with mode: 0644]