[Bug fortran/95500] Segfault compiling extra interface on intrinsic
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jun 5 18:51:12 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95500
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Harald Anlauf
<anlauf@gcc.gnu.org>:
https://gcc.gnu.org/g:fa0d6c132c8fd7deb118f8309aa9dfe41a88e840
commit r9-8653-gfa0d6c132c8fd7deb118f8309aa9dfe41a88e840
Author: Harald Anlauf <anlauf@gmx.de>
Date: Thu Jun 4 21:00:33 2020 +0200
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.
(cherry picked from commit 8c727bdf4acf28c8315b119a1c8f6d6af745c2af)
More information about the Gcc-bugs
mailing list