[Bug fortran/45740] PROCEDURE POINTER and PROTECTED: Accepts/ICEs on invalid code

janus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Oct 2 14:19:00 GMT 2010


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

--- Comment #5 from janus at gcc dot gnu.org 2010-10-02 14:19:18 UTC ---
(In reply to comment #4)
> Note: The problem not only applies to procedure pointers, but also to data
> pointers, as the following example shows:

Well, at least this example is invalid by the same logic as the original test
case. However, I'm not sure I fully understand this logic ...

In contrast to my annotation in the previous example, C551 does not apply
(since it only talks about nonpointers). And C552 only says that a protected
pointer cannot appear in a "pointer association context" (i.e. the LHS of a
pointer assignment). It does not say that a protected pointer cannot appear on
the RHS of a pointer assignment!?!



More information about the Gcc-bugs mailing list