public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/21224] New: Error when reading arrays of strings in namelist input in gfortran
@ 2005-04-25 21:26 mfatenejad at wisc dot edu
  2005-04-25 21:33 ` [Bug fortran/21224] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: mfatenejad at wisc dot edu @ 2005-04-25 21:26 UTC (permalink / raw)
  To: gcc-bugs

// Here is the exact command I used to compile my program for this bug report:

gfortran_temp/irun/bin/gfortran -save-temps test.F90

// Here is the exact output I get at the command line:

test.F90: In function 'MAIN__':
test.F90:9: internal compiler error: in gfc_conv_string_parameter, at
fortran/trans-expr.c:1986
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

// Here is the file test.f95 that was generated with the -save-temps option

# 1 "test.F90"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "test.F90"
program test

  implicit none

  character(len=20) :: var(20)

  namelist / input / var

  open(unit=10, file="test_file", form='formatted', status='unknown')
  read(10, nml=input)

end program test

Sorry I wrote out test.f95 here here...I didnt see anywhere on bugzilla to
attach files, and this is my first time posting a bug.

The problem seems to occur when I use namelist input to read an array of strings
. If I read 1 string only, there is no error. I encouterred this problem when
working on a larger program, which I was able to compile on three separate
fortran 90 compilers on many platforms.

Thank You
Milad Fatenejad

-- 
           Summary: Error when reading arrays of strings in namelist input
                    in gfortran
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mfatenejad at wisc dot edu
                CC: gcc-bugs at gcc dot gnu dot org
 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=21224


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

end of thread, other threads:[~2005-04-25 21:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-25 21:26 [Bug fortran/21224] New: Error when reading arrays of strings in namelist input in gfortran mfatenejad at wisc dot edu
2005-04-25 21:33 ` [Bug fortran/21224] " 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).