public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "Heiko dot Klein at gmx dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/25681]  New: Segmentation fault, when accessing len(attribute) of multidimensional object
Date: Thu, 05 Jan 2006 16:38:00 -0000	[thread overview]
Message-ID: <bug-25681-11973@http.gcc.gnu.org/bugzilla/> (raw)

Accessing something like len(f_2d%class) where f_2d is a multidimensional
object gives a segmentation fault in the compiler.

Example:

module testLen
  implicit none
  public :: Derived
  type, public:: Deriv
     character(len=9) :: class
  end type Deriv

  type(Deriv), private, dimension(2) :: f_2d


contains

  subroutine Derived()
    character(len=len(f_2d%class)) :: typ  !  See defs of f_2d

    typ = "Hallo    "
  end subroutine Derived

end module testLen


-- 
           Summary: Segmentation fault, when accessing len(attribute) of
                    multidimensional object
           Product: gcc
           Version: 4.0.2
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Heiko dot Klein at gmx dot net
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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



             reply	other threads:[~2006-01-05 16:38 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-05 16:38 Heiko dot Klein at gmx dot net [this message]
2006-01-05 16:40 ` [Bug fortran/25681] " Heiko dot Klein at gmx dot net
2006-01-05 16:47 ` [Bug fortran/25681] ICE with len of array of derived type pinskia at gcc dot gnu dot org
2006-01-05 18:11 ` pinskia at gcc dot gnu dot org
2006-02-06 18:31 ` fxcoudert at gcc dot gnu dot org
2006-03-19 17:15 ` jb at gcc dot gnu dot org
2006-04-27  9:49 ` fxcoudert at gcc dot gnu dot org
2006-04-27 11:50 ` patchapp at dberlin dot org
2006-04-27 11:50 ` fxcoudert at gcc dot gnu dot org
2006-04-27 12:53 ` jv244 at cam dot ac dot uk
2006-04-29 16:31 ` fxcoudert at gcc dot gnu dot org
2006-04-29 16:32 ` [Bug fortran/25681] [4.0 only] " fxcoudert at gcc dot gnu dot org
2006-05-05  9:01 ` fxcoudert at gcc dot gnu dot org
2006-05-05  9:02 ` [Bug fortran/25681] " fxcoudert 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=bug-25681-11973@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).