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