public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/63727] New: Checks missing for proc-pointer components: Usage as actual argument when elemental
@ 2014-11-03 20:20 burnus at gcc dot gnu.org
  2014-12-14  9:31 ` [Bug fortran/63727] [F03] " janus at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: burnus at gcc dot gnu.org @ 2014-11-03 20:20 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63727

            Bug ID: 63727
           Summary: Checks missing for proc-pointer components: Usage as
                    actual argument when elemental
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org

The PPC lacks some argument check as the code below should have been rejected
with something like: ELEMENTAL non-INTRINSIC procedure 'x%ptr' is not allowed
as an actual argument.


interface
  elemental subroutine foo()
  end subroutine
end interface

type t
  procedure(foo), pointer, nopass :: ptr
end type t

type(t) :: x
call bar(x%ptr)
end


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

end of thread, other threads:[~2014-12-15 16:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-03 20:20 [Bug fortran/63727] New: Checks missing for proc-pointer components: Usage as actual argument when elemental burnus at gcc dot gnu.org
2014-12-14  9:31 ` [Bug fortran/63727] [F03] " janus at gcc dot gnu.org
2014-12-15 16:11 ` janus at gcc dot gnu.org
2014-12-15 16:14 ` janus at gcc dot gnu.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).