From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13457 invoked by alias); 16 Apr 2010 17:01:02 -0000 Received: (qmail 13327 invoked by uid 48); 16 Apr 2010 17:00:43 -0000 Date: Fri, 16 Apr 2010 17:01:00 -0000 Message-ID: <20100416170043.13326.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: "kargl 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: 2010-04/txt/msg01592.txt.bz2 ------- Comment #11 from kargl at gcc dot gnu dot org 2010-04-16 17:00 ------- (In reply to comment #7) > > I get an error at compile time with gfortran 4.2.3, 4.3.3, 4.4.0, and trunk > > (intel-darwin9). Is this PR valid? > > Good question - I get now the same error for comment 0, which makes the report > INVALID. > > I don't get an error for comment 4. I think it is in principle detectable, but > difficult -> WONTFIX? > > At run time, I get for comment 4 "(0/11)" instead of the proper "(1/12)", but I > think the off-by-one bug is tracked elsewhere. > The off-by-one bug is fixed. laptop:kargl[286] gfc4x -o z -fcheck=bounds g.f90 laptop:kargl[287] ./z At line 4 of file g.f90 Fortran runtime error: Array bound mismatch, size mismatch for dimension 1 of array 'b' (1/12) Can we close this PR? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36754