The following piece of code produces an ICE:

[EMAIL PROTECTED] tmp]$ more test.f95
PROGRAM    moo
IMPLICIT   NONE

   character(len=8) list(50)
   integer iin
   namelist/shf/ list

   iin = 5
   read(iin,nml=shf)

END PROGRAM moo


[EMAIL PROTECTED] tmp]$ f95 test.f95
test.f95: In function �MAIN__�:
test.f95:8: internal compiler error: in gfc_conv_string_parameter, at
fortran/trans-expr.c:2015
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.

[EMAIL PROTECTED] tmp]$ f95 --version
GNU Fortran 95 (GCC 4.0.0 20050412 (Red Hat 4.0.0-0.42))
Copyright (C) 2005 Free Software Foundation, Inc.


I am not a fortran programmer (yet :) ) and I have encountered this error in
compling a piece of scientific software. I cannot cut and paste the actual code
from this software, since I don't own it, hence I've tried to make this analogy
code. I think the crux of the problem lies with the "list" array being in a
namelist and then this namelist being accessed via the read function.

-- 
           Summary: internal compiler error: in gfc_conv_string_parameter,
                    at fortran/trans-expr.c:2015
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mjw99 at ic dot ac dot uk
                CC: gcc-bugs at gcc dot gnu dot org


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

Reply via email to