public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/40869]  New: [F03] PPC assignment checking
@ 2009-07-27  7:19 janus at gcc dot gnu dot org
  2009-08-25 17:50 ` [Bug fortran/40869] " janus at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: janus at gcc dot gnu dot org @ 2009-07-27  7:19 UTC (permalink / raw)
  To: gcc-bugs

This PR is meant to track one leftover item related to procedure pointer
components: No pointer assignment checking is performed yet when a PPC is
involved, cf. the TODO comment in expr.c (gfc_check_pointer_assign).

Short test case:


implicit none

type :: t1
  procedure(integer), pointer, nopass :: ppc
end type

type :: t2
  procedure(real), pointer, nopass :: ppc
end type

type(t1) :: o1
type(t2) :: o2
procedure(logical),pointer :: pp1
procedure(complex),pointer :: pp2

pp1 => pp2
o1%ppc => pp1
pp2 => o2%ppc
o1%ppc => o2%ppc

end


All four pointer assignments in this example are invalid, but only the first
one is caught.


-- 
           Summary: [F03] PPC assignment checking
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: janus at gcc dot gnu dot org


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


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

end of thread, other threads:[~2009-08-27 19:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-27  7:19 [Bug fortran/40869] New: [F03] PPC assignment checking janus at gcc dot gnu dot org
2009-08-25 17:50 ` [Bug fortran/40869] " janus at gcc dot gnu dot org
2009-08-27 19:49 ` janus at gcc dot gnu dot org
2009-08-27 19:53 ` 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).