http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46299
--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2010-11-04 13:15:52 UTC --- (All references relative to Fortran 2008.) Per R516 explicit-shape-spec is [ lower-bound : ] upper-bound and R517/518 the bounds have to be specification expressions (R728, Section 7.1.11). "A restricted expression is an expression in which each operation is intrinsic or defined by a specification function and each primary is [...] (4) an object designator with a base object that is made accessible by use or host association, [...] (9) a specification inquiry where each designator or function argument is [...] (b) a variable whose properties inquired about are not (i) dependent on the upper bound of the last dimension of an assumed-size array, (ii) deferred, or (iii) defined by an expression that is not a restricted expression, Thus, the error message of the Cray compiler is correct as (9)(b)(ii) is violated.