This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/53939] allows assignment to INTENT(IN) nested component
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 12 Jul 2012 13:29:08 +0000
- Subject: [Bug fortran/53939] allows assignment to INTENT(IN) nested component
- Auto-submitted: auto-generated
- References: <bug-53939-4@http.gcc.gnu.org/bugzilla/>
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.]