------- Comment #3 from burnus at gcc dot gnu dot org 2008-04-09 18:49 ------- > In this test case both arrays are explicit-sized, and even have the same size, > but their upper and lower bounds are shifted. gfortran currently does not even > check if both arrays have the same size, only their ranks are compared.
I think procedures with explicit-shape arguments with the same shape/size but only different bounds should be conformable. The only real problem is assumed-shape vs. the rest (explict, assumed-size, ...). Ok, if an explicit size is given, the sizes should match, but arguments of the dummy/actual function like "integer :: foo(*)" and bar(1:2) and foobar(3000:3001) should all be conformable. Similarly, I think, also foo(1:), bar(:) and foobar(-300:) should be conformable. (I cannot really pinpoint it in the standard, but I'm convinced that this is the case; when I have time, I will re-read the standard and try to produce a proper reference.) * I use "manner" as "kind" and "type" have a special Fortran meaning. -- burnus at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2008-04-09 18:49:31 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35831