This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/51260] PARAMETER array with constructor initializer: Compile-time simplify single element access
- From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 24 Mar 2018 17:57:24 +0000
- Subject: [Bug fortran/51260] PARAMETER array with constructor initializer: Compile-time simplify single element access
- Auto-submitted: auto-generated
- References: <bug-51260-4@http.gcc.gnu.org/bugzilla/>
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...