public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/57966] [OOP] Using a TBP to specify the shape of a dummy argument Date: Wed, 24 Jul 2013 11:34:00 -0000 [thread overview] Message-ID: <bug-57966-4-TXl5nOVzXJ@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-57966-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57966 janus at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rejects-valid Status|UNCONFIRMED |NEW Last reconfirmed| |2013-07-24 CC| |janus at gcc dot gnu.org Summary|Using a TBP to specify the |[OOP] Using a TBP to |shape of a dummy argument |specify the shape of a | |dummy argument Ever confirmed|0 |1 --- Comment #1 from janus at gcc dot gnu.org --- (In reply to stefan.mauerberger from comment #0) > Hi There! Hi! > I am faced with some weired behavior. Because it is a little hard to > describe I am providing an example: ... which is anyway a much better idea than trying to describe it. > Attached, there is a minimal example. Compiling it with gfortran terminates > with: > > test.f90:33.22: > > > > REAL :: field( config%my_size() ) > > 1 > > Error: 'my_size' at (1) should be a FUNCTION > > Any ideas? Seems like you hit a bug. I can reproduce it with 4.7, 4.8 and trunk. Slightly reduced test case: MODULE my_mod IMPLICIT NONE TYPE config_cls CONTAINS PROCEDURE, NOPASS :: my_size END TYPE TYPE(config_cls) :: config CONTAINS PURE INTEGER FUNCTION my_size() my_size = 10 END FUNCTION SUBROUTINE my_sub( field ) REAL :: field( config%my_size() ) END SUBROUTINE END MODULE Thanks for reporting ... Cheers, Janus
next prev parent reply other threads:[~2013-07-24 11:34 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-07-24 10:40 [Bug fortran/57966] New: " stefan.mauerberger at gmail dot com 2013-07-24 11:34 ` janus at gcc dot gnu.org [this message] 2013-07-24 12:17 ` [Bug fortran/57966] [OOP] " janus at gcc dot gnu.org 2013-07-24 14:39 ` janus at gcc dot gnu.org 2013-07-24 23:03 ` burnus at gcc dot gnu.org 2013-07-25 9:10 ` janus at gcc dot gnu.org 2013-07-25 9:23 ` burnus at gcc dot gnu.org 2013-07-25 12:29 ` janus at gcc dot gnu.org 2013-07-25 13:57 ` janus at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-57966-4-TXl5nOVzXJ@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).