public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/36705]  New: Procedure pointers with attributes statements
@ 2008-07-02 20:44 burnus at gcc dot gnu dot org
  2008-08-14 17:12 ` [Bug fortran/36705] " janus at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-07-02 20:44 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-08-14 21:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-02 20:44 [Bug fortran/36705] New: Procedure pointers with attributes statements burnus at gcc dot gnu dot org
2008-08-14 17:12 ` [Bug fortran/36705] " janus at gcc dot gnu dot org
2008-08-14 21:18 ` janus at gcc dot gnu dot org
2008-08-14 21:22 ` janus at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).