From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22853 invoked by alias); 9 Jul 2008 14:50:43 -0000 Received: (qmail 22447 invoked by uid 48); 9 Jul 2008 14:49:55 -0000 Date: Wed, 09 Jul 2008 14:50:00 -0000 Message-ID: <20080709144955.22446.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/36754] Compile-time bound-checking for allocatable arrays with known bonds In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "tkoenig at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-07/txt/msg00914.txt.bz2 ------- 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