This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/69398] [OOP] ICE on class with duplicate dimension attribute specified
- From: "janus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 08 Dec 2016 17:30:04 +0000
- Subject: [Bug fortran/69398] [OOP] ICE on class with duplicate dimension attribute specified
- Auto-submitted: auto-generated
- References: <bug-69398-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69398
--- Comment #4 from janus at gcc dot gnu.org ---
Note that we also have a rejects-valid problem with the following code:
program p
type t
end type
class(t), allocatable :: z
target :: z(:)
allocate (z(2))
end
which is rejected with:
allocate (z(2))
1
Error: Syntax error in ALLOCATE statement at (1)
The problem is that the class container is built too early (and thus we build a
container for a scalar class variable).