[Bug fortran/51260] PARAMETER array with constructor initializer: Compile-time simplify single element access
tkoenig at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Mar 24 17:57:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51260
--- Comment #2 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Still the same thing with current trunk.
Interestingly,
integer, parameter:: is(10000)=(/(i,i=1,10000)/)
integer, parameter :: x = is(1)
print *,x
end
is simplified correctly.
Maybe a missing call to gfc_simplify_expr somewhere...
More information about the Gcc-bugs
mailing list