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/36754] Compile-time bound-checking for allocatable arrays with known bonds



------- Comment #4 from tkoenig at gcc dot gnu dot org  2008-07-09 14:49 -------
(In reply to comment #3)
> > b = a(1:12)
> > Error: Different shape for array assignment at (1) on dimension 1 (1 and 12)
> > ? I don't have that many patches left.
> 
> Hmm, I currently get the same (with all gfortrans I have). I really wonder why
> I did not get this before. Let me recheck tomorrow.

Same thing here.

What doesn't raise a warning, but could, is

integer,allocatable :: a(:)
integer :: b(1)
allocate(a(12))
b = a
end


-- 


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


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