save :: p procedure() :: p pointer :: p end Error: PROCEDURE attribute conflicts with SAVE attribute in 'p' at (1)
Problem: The SAVE + PROCEDURE checking comes too early before the POINTER is seen. I think this program is valid. Analogously: subroutine bar(x) procedure(), intent(in) :: x pointer :: x end subroutine bar Here, the POINTER comes too late for INTENT -- Summary: Procedure pointers with attributes statements Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36705