From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3794 invoked by alias); 5 Apr 2005 23:11:23 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 3773 invoked by uid 48); 5 Apr 2005 23:11:19 -0000 Date: Tue, 05 Apr 2005 23:11:00 -0000 Message-ID: <20050405231119.3772.qmail@sourceware.org> From: "tobi at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050405231017.20779.tobi@gcc.gnu.org> References: <20050405231017.20779.tobi@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug fortran/20779] ALLOCATEing the STAT variable not detected X-Bugzilla-Reason: CC X-SW-Source: 2005-04/txt/msg00546.txt.bz2 List-Id: ------- Additional Comments From tobi at gcc dot gnu dot org 2005-04-05 23:11 ------- Same problem, more ocmplicated testcase: program fc012 ! Submitted by Walt Brainerd, The Fortran Company ! Windows XP ! Reading specs from /usr/local/bin/../lib/gcc-lib/i686-pc-cygwin/4.0.0//specs ! Configured with: /gcc/configure --enable-languages=c ! Thread model: single ! gcc version 4.0.0 20050129 (experimental) (g95!) Feb 22 2005 ! This program violates the following rule, identified below. integer, allocatable :: ALLOCS(:) ! The stat-variable must not be allocated within the same statement. ! This is not a constraint as in general it cannot be detected at ! compile-time (for example, the stat variable can be a subscripted variable ! whose subscript is determined at run time). allocate (ALLOCS(10),stat=ALLOCS(1)) deallocate (ALLOCS) print *, 'This program has one error' end program fc012 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20779