aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/check.c
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2016-07-30 22:36:56 +0000
committerMartin Sebor <msebor@gcc.gnu.org>2016-07-30 16:36:56 -0600
commit8bada5cd4e51feb60e1e887ecf0bda3288949af4 (patch)
tree550fac33b2921668ad6de96d6b6f2290e64f48de /gcc/fortran/check.c
parentd0047a2538bc3381a7cf94e714f05b4b96799f6d (diff)
downloadgcc-8bada5cd4e51feb60e1e887ecf0bda3288949af4.zip
gcc-8bada5cd4e51feb60e1e887ecf0bda3288949af4.tar.gz
gcc-8bada5cd4e51feb60e1e887ecf0bda3288949af4.tar.bz2
PR c++/60760 - arithmetic on null pointers should not be allowed in constant
PR c++/60760 - arithmetic on null pointers should not be allowed in constant PR c++/71091 - constexpr reference bound to a null pointer dereference gcc/cp/ChangeLog: PR c++/60760 PR c++/71091 * constexpr.c (cxx_eval_binary_expression): Reject invalid expressions involving null pointers. (cxx_eval_component_reference): Reject null pointer dereferences. (cxx_eval_indirect_ref): Reject indirecting through null pointers. (cxx_eval_constant_expression): Reject invalid expressions involving null pointers. gcc/testsuite/ChangeLog: PR c++/60760 PR c++/71091 * g++.dg/cpp0x/constexpr-cast.C: New test. * g++.dg/cpp0x/constexpr-nullptr-2.C: New test. * g++.dg/cpp1y/constexpr-sfinae.C: Correct. * g++.dg/ubsan/pr63956.C: Correct. From-SVN: r238909
Diffstat (limited to 'gcc/fortran/check.c')
0 files changed, 0 insertions, 0 deletions