[Bug fortran/53939] allows assignment to INTENT(IN) nested component

burnus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jul 12 13:29:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53939

--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-07-12 13:29:08 UTC ---
(In reply to comment #1)
> However, both "elem" and "cl2g" are pointers - thus the "intent(in)" doesn't
> apply. [Or more precisely, for "cl2g" the intent doesn't apply at all (as it
> is underneath a pointer component) while for "elem" it only applies to
> pointer-association changes: Namely, pointer assignment and
> allocate/deallocate/nullify of "cl2g" is prohibited due to intent(in),

  That "cl2g" should have been "elem" - sorry for the typo.

> changing its value is allowed.]



More information about the Gcc-bugs mailing list