This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/36754] Compile-time bound-checking for allocatable arrays with known bonds
- From: "tkoenig at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jul 2008 14:49:55 -0000
- Subject: [Bug fortran/36754] Compile-time bound-checking for allocatable arrays with known bonds
- References: <bug-36754-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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