[pushed] PR fortran/104331 - [10/11/12 Regression] ICE in gfc_simplify_eoshift, at fortran/simplify.cc:2590

2022-02-01 Thread Harald Anlauf via Fortran
Dear all, another trivial and obvious one, discovered by Gerhard. We can have a NULL pointer dereference simplifying EOSHIFT on an array that was not properly declared. Pushed to mainline as r12-6977 after regtesting on x86_64-pc-linux-gnu. Will backport to affected branches [11/10] with some de

[PATCH] PR fortran/104311 - [9/10/11/12 Regression] ICE out of memory since r9-6321-g4716603bf875ce

2022-02-01 Thread Harald Anlauf via Fortran
Dear Fortranners, a check in gfc_calculate_transfer_sizes had a bug in the logic: it did not trigger for MOLD having a storage size zero when arugment SIZE was present. The attached obvious patch fixes this. Regtested on x86_64-pc-linux-gnu. OK for mainline/11/10/9? Thanks, Harald From b8f124