This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/20541] TR 15581: ALLOCATABLE components
- From: "post at tillmann-wegst dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jul 2005 08:21:51 -0000
- Subject: [Bug fortran/20541] TR 15581: ALLOCATABLE components
- References: <20050318204302.20541.madbosun@gmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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