[Bug fortran/22518] New: ICE in gfc_conv_function_call for elemental character functions

tkoenig at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Jul 17 11:12:00 GMT 2005


$ cat elem-char.f90
program main
  character(len=2) :: a(2)
  print *,foo(a)
contains
  elemental function foo(a)
  character(len=*), intent(in) :: a
  character(len=*) foo
  foo = a
  end function foo
end program main
$ gfortran elem-char.f90
elem-char.f90: In function 'MAIN__':
elem-char.f90:3: internal compiler error: in gfc_conv_function_call, at
fortran/trans-expr.c:1106
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
$ gfortran -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.1/configure --prefix=/home/ig25 --enable-languages=c,f95
Thread model: posix
gcc version 4.1.0 20050716 (experimental)

-- 
           Summary: ICE in gfc_conv_function_call for elemental character
                    functions
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tkoenig at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
OtherBugsDependingO 19276
             nThis:


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



More information about the Gcc-bugs mailing list