diff options
author | Jakub Jelinek <jakub@redhat.com> | 2018-08-08 10:31:40 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2018-08-08 10:31:40 +0200 |
commit | bf533db8059e25668db76845390786e7fa5f3a76 (patch) | |
tree | f6a530fb390a2247b815a755871606b62181913b /libcpp | |
parent | e75bc10e68f2c154eea18b87486e9da5cad0efaa (diff) | |
download | gcc-bf533db8059e25668db76845390786e7fa5f3a76.zip gcc-bf533db8059e25668db76845390786e7fa5f3a76.tar.gz gcc-bf533db8059e25668db76845390786e7fa5f3a76.tar.bz2 |
re PR c++/86738 (gcc 8.2: Internal compiler error memcpy)
PR c++/86738
* constexpr.c (cxx_eval_binary_expression): For arithmetics involving
NULL pointer set *non_constant_p to true.
(cxx_eval_component_reference): For dereferencing of a NULL pointer,
set *non_constant_p to true and return t.
* g++.dg/opt/pr86738.C: New test.
From-SVN: r263390
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions