public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/60717] Wrong code with recursive procedure with unlimited polymorphic dummy argument Date: Mon, 31 Mar 2014 12:22:00 -0000 [thread overview] Message-ID: <bug-60717-4-riTkV4r1uT@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-60717-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60717 Paul Thomas <pault at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2014-03-31 CC| |pault at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |pault at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Paul Thomas <pault at gcc dot gnu.org> --- Confirmed. You beat me to it by about 30 minutes, Vladimir! The problem is the recursive call within 'show_generic': D.3571 = a->_data.dim[0].ubound; parm.2.dtype = 345; D.3575 = a->_data.dim[0].stride; parm.2.dim[0].lbound = 1; parm.2.dim[0].ubound = D.3571 + -1; parm.2.dim[0].stride = NON_LVALUE_EXPR <D.3575>; parm.2.data = a->_data.data + (sizetype) (a->_vptr->_size * NON_LVALUE_EXPR <D.3575>); parm.2.offset = 0; class.3._data = VIEW_CONVERT_EXPR<struct array1_unknown>(parm.2); class.3._vptr = a->_vptr; show_generic (&class.3); The offset is 0, whereas it should be -1. The call to 'show_generic' from the main program is done correctly: parm.17.dtype = 281; parm.17.dim[0].lbound = 1; parm.17.dim[0].ubound = 6; parm.17.dim[0].stride = 1; parm.17.data = (void *) &array[0]; parm.17.offset = -1; class.16._data = parm.17; show_generic (&class.16); This tells us exactly where the problem is. I am taking it. Paul
next prev parent reply other threads:[~2014-03-31 12:22 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-03-31 8:53 [Bug fortran/60717] New: " vladimir.fuka at gmail dot com 2014-03-31 12:22 ` pault at gcc dot gnu.org [this message] 2014-04-01 4:42 ` [Bug fortran/60717] " pault at gcc dot gnu.org 2014-04-03 7:53 ` vladimir.fuka at gmail dot com 2014-04-03 8:28 ` dominiq at lps dot ens.fr 2014-04-13 11:56 ` pault at gcc dot gnu.org 2014-04-13 11:59 ` pault at gcc dot gnu.org 2015-10-18 10:56 ` pault 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-60717-4-riTkV4r1uT@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).