[PATCH] PR fortran/103473 - [11/12 Regression] ICE in simplify_minmaxloc_nodim, at fortran/simplify.c:5287

Mikael Morin morin-mikael@orange.fr
Tue Nov 30 11:37:10 GMT 2021

Le 29/11/2021 à 23:01, Harald Anlauf via Fortran a écrit :
> Dear all,
> another trivial and obvious one, discovered by Gerhard.
> We can have a NULL pointer dereference simplifying MINLOC/MAXLOC
> on an array that was not properly declared.
> OK for mainline / affected 11-branch after regtesting completes?
Yes, fine as well.

I have the impression that there are quite a number of bugs of this 
kind, and that maybe we could take a more systematic approach to not try 
to simplify something with errors.


More information about the Gcc-patches mailing list