------- 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