public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/15181] New: gfc_conv_component_ref: Assertion `c->backend_decl' failed
@ 2004-04-27 22:41 olchansk at panix dot com
  2004-04-27 22:44 ` [Bug fortran/15181] [gfortran] " pinskia at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: olchansk at panix dot com @ 2004-04-27 22:41 UTC (permalink / raw)
  To: gcc-bugs

cvs-head tree-ssa gfortran (gcc version 3.5-tree-ssa 20040423 (merged 20040414))
fails to compile this code. It works fine with Absoft and ICC.

module foo
  implicit none

  type:: wire_type
     integer iwire
  end type wire_type

  type:: tdc_type   
     integer iabc
     type(wire_type), pointer:: wireP
  end type tdc_type

  type(tdc_type):: pctdc(100)

contains

  subroutine bar
    integer ii
    integer itdc

    !! following line causes ICE:
    !! f951: ../../gcc/gcc/fortran/trans-expr.c:219:
    !! gfc_conv_component_ref: Assertion `c->backend_decl' failed.

    ii = PCtdc(iTDC)%WireP%iwire

  end subroutine bar

end module foo


[olchansk@dork gfortran_test]$ make test_gfc_conv_component_ref.o
/triumfcs/trshare/olchansk/gcc-tree-ssa/install/bin/gfortran -x f95 -c  -o
test_gfc_conv_component_ref.o -O2 -g -Wall -Waliasing -Wline-truncation
-Wsurprising -Wunused-labels -fPIC -ffixed-line-length-132
test_gfc_conv_component_ref.f90
f951: ../../gcc/gcc/fortran/trans-expr.c:219: gfc_conv_component_ref: Assertion
`c->backend_decl' failed.
test_gfc_conv_component_ref.f90: In function `bar':
test_gfc_conv_component_ref.f90:25: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make: *** [test_gfc_conv_component_ref.o] Error 1

K.O.

-- 
           Summary: gfc_conv_component_ref: Assertion `c->backend_decl'
                    failed
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: olchansk at panix dot com
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu


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


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

end of thread, other threads:[~2005-02-16  3:50 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-27 22:41 [Bug fortran/15181] New: gfc_conv_component_ref: Assertion `c->backend_decl' failed olchansk at panix dot com
2004-04-27 22:44 ` [Bug fortran/15181] [gfortran] " pinskia at gcc dot gnu dot org
2004-05-27  3:10 ` pinskia at gcc dot gnu dot org
2004-06-13  9:16 ` pinskia at gcc dot gnu dot org
2004-07-12  2:30 ` [Bug fortran/15181] " olchansk at panix dot com
2004-09-26 16:16 ` tobi at gcc dot gnu dot org
2004-09-30 21:57 ` pinskia at gcc dot gnu dot org
2004-10-09 22:29 ` olchansk at panix dot com
2004-10-15 19:59 ` dr dot johan at gmail dot com
2004-10-15 20:17 ` tobi at gcc dot gnu dot org
2004-11-11 19:11 ` pinskia at gcc dot gnu dot org
2005-02-16  9:42 ` pinskia 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).