This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/31538] misleading bounds check error



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]