[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 13:25:00 GMT 2010


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

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2010.10.02 13:25:23
     Ever Confirmed|0                           |1

--- Comment #4 from janus at gcc dot gnu.org 2010-10-02 13:25:23 UTC ---
Note: The problem not only applies to procedure pointers, but also to data
pointers, as the following example shows:


module m
  integer, pointer :: p
  protected :: p
end module m

  use m
  integer, pointer :: ptr2
  ptr2 => p  ! Invalid per F08:C551 (undiagnosed)
end



More information about the Gcc-bugs mailing list