]> gcc.gnu.org Git - gcc.git/commit
Fortran: error recovery when simplifying MINLOC/MAXLOC
authorHarald Anlauf <anlauf@gmx.de>
Mon, 29 Nov 2021 21:56:30 +0000 (22:56 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Tue, 30 Nov 2021 19:20:56 +0000 (20:20 +0100)
commit36421e76a7150621f2a5c7060ddd3f80aa825a40
treefccabb72616b12892788d5ad4eae573d02e218f5
parent814f52a8bfc66aff8c453b040f0e730b034b7f52
Fortran: error recovery when simplifying MINLOC/MAXLOC

gcc/fortran/ChangeLog:

PR fortran/103473
* simplify.c (simplify_minmaxloc_nodim): Avoid NULL pointer
dereference when shape is not set.

gcc/testsuite/ChangeLog:

PR fortran/103473
* gfortran.dg/minmaxloc_15.f90: New test.
gcc/fortran/simplify.c
gcc/testsuite/gfortran.dg/minmaxloc_15.f90 [new file with mode: 0644]
This page took 0.065719 seconds and 5 git commands to generate.