public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jakub at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/39865] ICE in gfc_conv_scalarized_array_ref
Date: Thu, 23 Apr 2009 14:51:00 -0000	[thread overview]
Message-ID: <20090423145127.13833.qmail@sourceware.org> (raw)
In-Reply-To: <bug-39865-87@http.gcc.gnu.org/bugzilla/>



------- Comment #8 from jakub at gcc dot gnu dot org  2009-04-23 14:51 -------
A different testcase that segfaults even a little bit earlier:
subroutine test()
  interface
    function f()
      character(len=1) :: f(5)
    end function f
  end interface
  write (*, f()) 1
end subroutine test

Here upon entry to gfc_convert_array_to_string e->ref == NULL, so it crashes
already in that function.
If the array is packed, guess all we want is compute the address of its first
element and its SIZEOF (could we use the SIZEOF intrinsic expansion for that)?
If it is not packed, I'm afraid we need to pack it and then do what we do for
packed arrays.


-- 


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


  parent reply	other threads:[~2009-04-23 14:51 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-23 12:41 [Bug fortran/39865] New: " jakub at gcc dot gnu dot org
2009-04-23 12:47 ` [Bug fortran/39865] " jakub at gcc dot gnu dot org
2009-04-23 13:07 ` dominiq at lps dot ens dot fr
2009-04-23 13:18 ` jakub at gcc dot gnu dot org
2009-04-23 13:33 ` jakub at gcc dot gnu dot org
2009-04-23 13:50 ` jakub at gcc dot gnu dot org
2009-04-23 13:57 ` burnus at gcc dot gnu dot org
2009-04-23 14:19 ` jakub at gcc dot gnu dot org
2009-04-23 14:51 ` jakub at gcc dot gnu dot org [this message]
2009-04-23 17:34 ` burnus at gcc dot gnu dot org
2009-05-11 17:30 ` jakub at gcc dot gnu dot org
2009-05-12 13:20 ` jakub at gcc dot gnu dot org
2009-05-14  0:01 ` jakub at gcc dot gnu dot org
2009-05-14  6:46 ` jakub at gcc dot gnu dot 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=20090423145127.13833.qmail@sourceware.org \
    --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).