This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/36705] New: Procedure pointers with attributes statements
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jul 2008 20:43:18 -0000
- Subject: [Bug fortran/36705] New: Procedure pointers with attributes statements
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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