This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/36705] New: Procedure pointers with attributes statements


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]