PR c++/82872
commit5f70fecd356dcdd2e85fe594c77063bb88b3f78f
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Dec 2017 16:22:04 +0000 (21 16:22 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Dec 2017 16:22:04 +0000 (21 16:22 +0000)
tree874f8fce52c1819336a08cb53bb1286a42af8cb7
parent9f79ab2ee11f46885b6dfb16ea0c6c68d695fde2
PR c++/82872
* convert.c (convert_to_integer_1) <POINTER_TYPE>: Do not return the
shared zero if the input has overflowed.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@255944 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/convert.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr82872.c [new file with mode: 0644]