This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/83633] gfortran internal compiler error for explicit-shape array with non-constant bounds
- From: "weeks at iastate dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 06 Jan 2018 00:05:50 +0000
- Subject: [Bug fortran/83633] gfortran internal compiler error for explicit-shape array with non-constant bounds
- Auto-submitted: auto-generated
- References: <bug-83633-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83633
--- Comment #4 from Nathan T. Weeks <weeks at iastate dot edu> ---
Fortran 2008 appears to have tightened restrictions on explicit-shape arrays in
the main program and made this particular case illegal (per section 5.3.8.2
"Explicit-shape array"):
C531 (R516) An explicit-shape-spec whose bounds are not constant expressions
shall appear only in a subprogram, derived type definition, BLOCK construct, or
interface body.