This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/31538] misleading bounds check error
- From: "dominiq at lps dot ens dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Apr 2010 17:38:51 -0000
- Subject: [Bug fortran/31538] misleading bounds check error
- References: <bug-31538-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from dominiq at lps dot ens dot fr 2010-04-16 17:38 -------
The run time error for
i = 0
a(i:1) = b(0:4)
is
At line 9 of file pr31538_db_2.f90
Fortran runtime error: Array bound mismatch, size mismatch for dimension 1 of
array 'a' (2/5)
for
i = 0
a(i:1) = f(b)
it is
At line 14 of file pr31538_db.f90
Fortran runtime error: Array bound mismatch for dimension 1 of array 'f'
In my opinion also the second case should produce an error similar to the first
ones.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31538