]> gcc.gnu.org Git - gcc.git/commit
PR fortran/95500 - Segfault compiling extra interface on intrinsic
authorHarald Anlauf <anlauf@gmx.de>
Thu, 4 Jun 2020 19:00:33 +0000 (21:00 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Thu, 4 Jun 2020 19:01:26 +0000 (21:01 +0200)
commit8c727bdf4acf28c8315b119a1c8f6d6af745c2af
treef211076b345efb1ed51b91893aff5a07d8c0771a
parent4f2d05ef0142d269964e165c14c6f7fe4bdfd5a3
PR fortran/95500 - Segfault compiling extra interface on intrinsic

Converting an expression so that it can be passed by reference could
result in a NULL pointer dereference.

2020-06-04  Steven G. Kargl  <kargl@gcc.gnu.org>
    Harald Anlauf  <anlauf@gmx.de>

gcc/fortran/
PR fortran/95500
* trans-expr.c (gfc_conv_expr_reference): Do not dereference NULL
pointer.

gcc/testsuite/
PR fortran/95500
* gfortran.dg/pr95500.f90: New test.
gcc/fortran/trans-expr.c
gcc/testsuite/gfortran.dg/pr95500.f90 [new file with mode: 0644]
This page took 0.071702 seconds and 5 git commands to generate.