From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2511 invoked by alias); 15 Apr 2005 08:30:22 -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 1998 invoked by uid 48); 15 Apr 2005 08:30:14 -0000 Date: Fri, 15 Apr 2005 08:30:00 -0000 Message-ID: <20050415083014.1997.qmail@sourceware.org> From: "fxcoudert at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050414223325.21034.nicolas.girard@nerim.net> References: <20050414223325.21034.nicolas.girard@nerim.net> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug fortran/21034] internal compiler error: in gfc_trans_auto_array_allocation, at fortran/trans-array.c:3036 X-Bugzilla-Reason: CC X-SW-Source: 2005-04/txt/msg02029.txt.bz2 List-Id: ------- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-04-15 08:30 ------- Reduced testcase is: $ cat pr21034.f subroutine solution(n) implicit none integer n real dte(n) save print *, dte end $ gfortran -c pr21034.f pr21034.f: In function ‘solution’: pr21034.f:4: internal compiler error: in gfc_trans_auto_array_allocation, at fortran/trans-array.c:3036 Please note that if "print *,dte" is replaced by any other statement using dte (such as "dte(:) = 0" or "call anothersub(dte)"), the bug is the same. Removing this line, removing the "save" statement or make n a parameter lead to correct compilation. -- What |Removed |Added ---------------------------------------------------------------------------- CC| |fxcoudert at gcc dot gnu dot | |org Status|UNCONFIRMED |NEW Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2005-04-15 08:30:11 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21034