public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/60507] New: Passing real expression into procedure argument not caught
@ 2014-03-12  8:52 vladimir.fuka at gmail dot com
  2014-03-12 13:47 ` [Bug fortran/60507] " janus at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: vladimir.fuka at gmail dot com @ 2014-03-12  8:52 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 60507
           Summary: Passing real expression into procedure argument not
                    caught
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vladimir.fuka at gmail dot com

This compiles fine with the trunk and crashes at runtime:

 print *, f(g(x))

contains

  real function f(fun) 
    procedure(g) :: fun
    f = fun(1.)
  end

  real function g(x)
    real, intent(in) :: x
  end

end


Similar to http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25147


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

end of thread, other threads:[~2015-01-02 11:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-12  8:52 [Bug fortran/60507] New: Passing real expression into procedure argument not caught vladimir.fuka at gmail dot com
2014-03-12 13:47 ` [Bug fortran/60507] " janus at gcc dot gnu.org
2014-03-12 16:46 ` [Bug fortran/60507] Passing function call " janus at gcc dot gnu.org
2014-03-13 20:12 ` janus at gcc dot gnu.org
2014-03-18 15:33 ` janus at gcc dot gnu.org
2014-12-26 13:42 ` dominiq at lps dot ens.fr
2014-12-29 12:12 ` janus at gcc dot gnu.org
2015-01-02 11:25 ` 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).