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/60255] Deferred character length variable at (1) cannot yet be associated with unlimited polymorphic entities Date: Tue, 18 Feb 2014 14:20:00 -0000 [thread overview] Message-ID: <bug-60255-4-DMKBzOjOlq@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-60255-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60255 --- Comment #3 from janus at gcc dot gnu.org --- Consider the following simple test case: implicit none call sub1("test") call sub2() contains subroutine sub1(dcl) ! accepted character(len=*), target :: dcl class(*), pointer :: ucp ucp => dcl select type (ucp) type is (character(len=*)) print *,"char" type is (real) print *,"real" class default print *,"something else" end select end subroutine subroutine sub2 ! rejected character(len=:), allocatable, target :: dcl class(*), pointer :: ucp dcl = "ttt" ucp => dcl select type (ucp) type is (character(len=*)) print *,"char" type is (real) print *,"real" class default print *,"something else" end select end subroutine end While 'sub1' is currently accepted (with unpatched trunk) and shows the right runtime behavior, 'sub2' is rejected with the error of comment 0. With the patch in comment 2, both cases are accepted and show the right runtime behavior. The only potential problem I can see is that the '_size' component of the vtab is zero and does not reflect its actual size.
next prev parent reply other threads:[~2014-02-18 14:20 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-02-18 0:03 [Bug fortran/60255] New: " antony at cosmologist dot info 2014-02-18 2:00 ` [Bug fortran/60255] " kargl at gcc dot gnu.org 2014-02-18 9:09 ` janus at gcc dot gnu.org 2014-02-18 14:20 ` janus at gcc dot gnu.org [this message] 2014-02-19 10:06 ` dominiq at lps dot ens.fr 2014-02-19 12:08 ` janus at gcc dot gnu.org 2014-02-27 14:30 ` antony at cosmologist dot info 2015-01-18 22:02 ` [Bug fortran/60255] [OOP] " pault at gcc dot gnu.org 2015-01-23 10:56 ` vehre at gmx dot de 2015-03-23 12:57 ` vehre 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-60255-4-DMKBzOjOlq@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).