From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18115 invoked by alias); 16 Apr 2010 17:39:09 -0000 Received: (qmail 18045 invoked by uid 48); 16 Apr 2010 17:38:51 -0000 Date: Fri, 16 Apr 2010 17:39:00 -0000 Message-ID: <20100416173851.18044.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/31538] misleading bounds check error In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dominiq at lps dot ens dot fr" 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/msg01596.txt.bz2 ------- Comment #9 from dominiq at lps dot ens dot fr 2010-04-16 17:38 ------- The run time error for i = 0 a(i:1) = b(0:4) is At line 9 of file pr31538_db_2.f90 Fortran runtime error: Array bound mismatch, size mismatch for dimension 1 of array 'a' (2/5) for i = 0 a(i:1) = f(b) it is At line 14 of file pr31538_db.f90 Fortran runtime error: Array bound mismatch for dimension 1 of array 'f' In my opinion also the second case should produce an error similar to the first ones. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31538