public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/33375]  New: ICE (segfault) gfortran.dg/common_6.f90
@ 2007-09-10  8:36 burnus at gcc dot gnu dot org
  2007-09-10  8:54 ` [Bug middle-end/33375] [4.3 Regression] " burnus at gcc dot gnu dot org
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-09-10  8:36 UTC (permalink / raw)
  To: gcc-bugs

With 4.3.0 20070910 [trunk revision 128322] I get a segmentation fault when
compiling gfortran.dg/common_6.f90; excerpt:

! PR 23765 : We used to incorrectly accept common blocks with no symbols
common          ! { dg-error "Syntax error" }
common y/d/     ! { dg-error "Syntax error" }

The crash happens in: resolve_common_blocks

  for (csym = common_root->n.common->head; csym; csym = csym->common_next)
    {
      if (csym->ts.type == BT_DERIVED
          && !(csym->ts.derived->attr.sequence
               || csym->ts.derived->attr.is_bind_c))

When the error happens:
(gdb) p csym->ts
$9 = {type = 0, kind = 0, derived = 0x0, cl = 0x0, is_c_interop = 6,
  is_iso_c = 1, f90_type = BT_UNKNOWN}

I don't understand why "csym->ts.derived->attr" is evaluated as "csym->ts.type
!= BT_DERIVED". ???


-- 
           Summary: ICE (segfault) gfortran.dg/common_6.f90
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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


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

end of thread, other threads:[~2008-01-24 21:37 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-10  8:36 [Bug fortran/33375] New: ICE (segfault) gfortran.dg/common_6.f90 burnus at gcc dot gnu dot org
2007-09-10  8:54 ` [Bug middle-end/33375] [4.3 Regression] " burnus at gcc dot gnu dot org
2007-09-10 16:00 ` [Bug fortran/33375] " burnus at gcc dot gnu dot org
2007-09-17  9:27 ` fxcoudert at gcc dot gnu dot org
2007-09-29 20:43 ` [Bug fortran/33375] " danglin at gcc dot gnu dot org
2007-10-07 20:03 ` tobi at gcc dot gnu dot org
2008-01-06 21:58 ` burnus at gcc dot gnu dot org
2008-01-06 22:41 ` burnus at gcc dot gnu dot org
2008-01-07  7:09 ` hjl at lucon dot org
2008-01-07  8:57 ` burnus at gcc dot gnu dot org
2008-01-07 23:47 ` hjl at lucon dot org
2008-01-08  8:46 ` jvdelisle at gcc dot gnu dot org
2008-01-08 14:24 ` hjl at lucon dot org
2008-01-16 16:17 ` [Bug fortran/33375] [4.3 Regression] " rguenth at gcc dot gnu dot org
2008-01-18  1:39 ` hjl at gcc dot gnu dot org
2008-01-18  9:00 ` ubizjak at gmail dot com
2008-01-24 22:24 ` dfranke 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).