#1111845 gfortran: compiling this code will cause an internal compiler error

Package:
gfortran
Source:
gfortran
Description:
GNU Fortran 95 compiler
Submitter:
RON
Date:
2025-08-22 19:05:03 UTC
Severity:
normal
#1111845#5
Date:
2025-08-22 19:03:27 UTC
From:
To:
Dear Maintainer,

Compiling the file attached leads to an internal compiler error.
The error only appears when the variable sizeA is set to 1e5 and
above (could be a more specific value inbetween 1e4 and 1e5). When
under this value, the code will compile and run with no error, but,
the code will take an absurde amount of time to compile when sizeA
is set to 1e4.  When set under 1e5, the code works as intended.

The error only happens when the variable x is written as :

    x = real([(i, i = 1, sizeA)])

if instead it is written as :

    x = [(real(i), i = 1, sizeA)]

there will be nore internal compiler error and the time to compile will
be very quick.

the code is compiled using only gfortran and no other flags