https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84734
Dominique d'Humieres <dominiq at lps dot ens.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu.org Summary|[8 Regression] Compiling |[8 Regression] Compiling |gfortran.dg/size_kind_(2|3) |codes with insane array |.f90 with |dimensions gives an ICE |-fdefault-integer-8 gives |after r257971 |an ICE | --- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- Up to revision r257970 compiling the code in comment 2 gives there errors size_kind_2_db.f90:6:13: integer :: B(huge(1_8)+3_8,2_8) 1 Error: Arithmetic overflow at (1) size_kind_2_db.f90:6:31: integer :: B(huge(1_8)+3_8,2_8) 1 Error: The module or main program array 'b' at (1) must have constant shape Starting at r257971 compiling the same code gives an ICE. The option -fdefault-integer-8 only exposed the bug. I have changed the summary to reflect the actual bug.