public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/25681]  New: Segmentation fault, when accessing len(attribute) of multidimensional object
@ 2006-01-05 16:38 Heiko dot Klein at gmx dot net
  2006-01-05 16:40 ` [Bug fortran/25681] " Heiko dot Klein at gmx dot net
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: Heiko dot Klein at gmx dot net @ 2006-01-05 16:38 UTC (permalink / raw)
  To: gcc-bugs

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



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2006-05-05  9:02 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-05 16:38 [Bug fortran/25681] New: Segmentation fault, when accessing len(attribute) of multidimensional object Heiko dot Klein at gmx dot net
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

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).