This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/36746] Rejects variable which is implictly typed as derived typed with DIMENSION
- From: "domob at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Sep 2008 17:14:11 -0000
- Subject: [Bug fortran/36746] Rejects variable which is implictly typed as derived typed with DIMENSION
- References: <bug-36746-16425@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from domob at gcc dot gnu dot org 2008-09-04 17:14 -------
Shouldn't for this code:
IMPLICIT TYPE(t)(x)
DIMENSION x(:)
x get the implicit type on the DIMENSION statement and this be thus equivalent
to
TYPE(t) :: x
DIMENSION x(:)
(if that's a legal way to specify DIMENSION, I'm not sure)? Thinking of PR
32095 and without knowing what the standard says about this, I'd suppose it is
so. This would mean the following is illegal:
IMPLICIT TYPE(t) (x)
DIMENSION x(:)
INTEGER :: x
Is this true? And is it ok to break code like that (I haven't tested if it's
accepted at the moment)? If it is, I would suggest to do implicit typing on
DIMENSION statements and try if this solves this bug.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36746