https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102366
Bug ID: 102366 Summary: [10/11/12 Regression] Illegal instruction with large arrays Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: dominiq at lps dot ens.fr Target Milestone: --- The following test REAL(KIND=4) :: a(16776325), s a=1.0_8 END gives at run time Illegal instruction a(16775301) to a(16776324) gives Segmentation fault and below a(16776323) the code run as expected. This occurred between r12-3046 (OK) and r12-3430 and r10-10049 (OK) and r10-10122. It also affects r11-8981. Note that REAL(KIND=4) :: a(16776325), s a(16776325)=1.0_8 END compiles and runs witout problem.