This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/45516] New: [F08] allocatable compontents of recursive type
- From: "janus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Sep 2010 09:57:19 -0000
- Subject: [Bug fortran/45516] New: [F08] allocatable compontents of recursive type
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
John Reid, The new features of Fortran 2008, chapter 5.3:
A recursive type is permitted to be based on allocatable components. Here is a
simple example of a type that holds a stack:
type entry
real :: value
integer :: index
type(entry), allocatable :: next
end type entry
[...]
For this gfortran currently gives:
type(entry), allocatable :: next
1
Error: Component at (1) must have the POINTER attribute
--
Summary: [F08] allocatable compontents of recursive type
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: janus at gcc dot gnu dot org
OtherBugsDependingO 39627
nThis:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45516