public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "burnus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/58793] Wrong storage_size of class(*) dummy argument with complex actual
Date: Fri, 18 Oct 2013 19:17:00 -0000	[thread overview]
Message-ID: <bug-58793-4-a0FesQt981@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-58793-4@http.gcc.gnu.org/bugzilla/>

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

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-10-18
                 CC|                            |burnus at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Confirmed. Patch:

diff --git a/gcc/fortran/class.c b/gcc/fortran/class.c
index be4959a..8d911bb 100644
--- a/gcc/fortran/class.c
+++ b/gcc/fortran/class.c
@@ -2504,5 +2504,7 @@ gfc_find_intrinsic_vtab (gfc_typespec *ts)
           else
         c->initializer = gfc_get_int_expr (gfc_default_integer_kind,
-                           NULL, ts->kind);
+                           NULL,
+                           ts->type == BT_COMPLEX
+                           ? 2*ts->kind : ts->kind);

           /* Add component _extends.  */


  reply	other threads:[~2013-10-18 19:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-18 18:18 [Bug fortran/58793] New: " vladimir.fuka at gmail dot com
2013-10-18 19:17 ` burnus at gcc dot gnu.org [this message]
2013-10-18 19:40 ` [Bug fortran/58793] Wrong value for _vtab for intrinsic types with CLASS(*): storage_size of class(*) gives wrong result burnus at gcc dot gnu.org
2013-10-19  5:41 ` burnus at gcc dot gnu.org
2013-10-19 22:04 ` pault at gcc dot gnu.org
2013-10-23  5:44 ` burnus at gcc dot gnu.org
2013-10-23  6:01 ` burnus at gcc dot gnu.org
2013-10-29 20:45 ` pault at gcc dot gnu.org
2013-10-29 20:48 ` pault at gcc dot gnu.org
2014-03-17  9:25 ` schwab@linux-m68k.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-58793-4-a0FesQt981@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: link
Be 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).