[Bug fortran/51637] Add compile-time error if array is too large

dominiq at lps dot ens.fr gcc-bugzilla@gcc.gnu.org
Sat Jan 11 11:39:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51637

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-01-11
     Ever confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Compiling the test with 4.7.4, 4.8.2, or 4.9.0 (no error with -Wall -Wextra at
compile time) with -fcheck=all gives the following error at run time:

At line 4 of file pr51637.f90
Fortran runtime error: Index '1' of dimension 1 of array 'a' above upper bound
of -1



More information about the Gcc-bugs mailing list