From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21180 invoked by alias); 29 Jul 2005 08:21:57 -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 21168 invoked by uid 48); 29 Jul 2005 08:21:51 -0000 Date: Fri, 29 Jul 2005 08:45:00 -0000 Message-ID: <20050729082151.21167.qmail@sourceware.org> From: "post at tillmann-wegst dot de" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050318204302.20541.madbosun@gmail.com> References: <20050318204302.20541.madbosun@gmail.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug fortran/20541] TR 15581: ALLOCATABLE components X-Bugzilla-Reason: CC X-SW-Source: 2005-07/txt/msg03838.txt.bz2 List-Id: ------- Additional Comments From post at tillmann-wegst dot de 2005-07-29 08:21 ------- I found that code containing allocatable fields in type statements compiles without complaints using "g95", so I was a bit perplex when moving to gfortran and getting the same error as reported here. Consulting Metcalf et al, "fortran 95/2003 explained", chap. 7.12, pages 149f., I did not find anything as to a conflict between attributes "allocatable" and "dimension". Has there been a change in the Fortran95 specs? If it is not a gfortran bug, what would be a work-around? Declare the variable as a pointer, allocate the array in a subroutine and then direct the pointer variable to it? That seems like a way out, though clumsy. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20541