public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/38538]  New: ICE with elemental character function
@ 2008-12-16  4:12 vivekrao4 at yahoo dot com
  2008-12-16  7:25 ` [Bug fortran/38538] " dominiq at lps dot ens dot fr
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: vivekrao4 at yahoo dot com @ 2008-12-16  4:12 UTC (permalink / raw)
  To: gcc-bugs

For the code below stored in xtemp.f90

module abc
implicit none
contains
subroutine xmain()
call foo(func("_"//bar()))
end subroutine xmain
!
function bar() result(yy)
character (len=1) :: yy(1)
yy = ""
end function bar
!
elemental function func(yy) result(xy)
character (len=*), intent(in) :: yy
character (len=len(yy)) :: xy
xy = yy
end function func
!
subroutine foo(cc)
character (len=*), intent(in) :: cc(:)
print*,cc
end subroutine foo
end module abc

gfortran -c xtemp.f90 gives

xtemp.f90: In function 'xmain':
xtemp.f90:8: internal compiler error: in gfc_conv_function_call, at
fortran/trans-expr.c:2846
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

gfortran -v gives

Built by Equation Solution (http://www.Equation.com).
Using built-in specs.
Target: i386-pc-mingw32
Configured with: ../gcc-4.4-20081212-mingw/configure --host=i386-pc-mingw32
--build=x86_64-unknown-linux-gnu --target=i386-pc-mingw32
--prefix=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/gcc/4.4-20081212
--with-gcc --with-gnu-ld --with-gnu-as --disable-shared --disable-nls
--disable-tls
--with-gmp=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/gmp
--with-mpfr=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/mpfr
--enable-languages=c,fortran,c++
--with-sysroot=/home/gfortran/gcc-home/binary/mingw32/cross/x86_32/gcc/4.4-20081212
--enable-libgomp --enable-threads=win32 --disable-win32-registry
Thread model: win32
gcc version 4.4.0 20081212 (experimental) (GCC)


-- 
           Summary: ICE with elemental character function
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: vivekrao4 at yahoo dot com


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


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

end of thread, other threads:[~2009-04-06 10:53 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-16  4:12 [Bug fortran/38538] New: ICE with elemental character function vivekrao4 at yahoo dot com
2008-12-16  7:25 ` [Bug fortran/38538] " dominiq at lps dot ens dot fr
2008-12-16 15:37 ` mikael at gcc dot gnu dot org
2008-12-16 16:04 ` dominiq at lps dot ens dot fr
2008-12-17  7:34 ` tkoenig at gcc dot gnu dot org
2008-12-18  9:15 ` pault at gcc dot gnu dot org
2008-12-18 16:36 ` pault at gcc dot gnu dot org
2008-12-18 16:39 ` pault at gcc dot gnu dot org
2008-12-18 21:21 ` dominiq at lps dot ens dot fr
2008-12-18 21:38 ` dominiq at lps dot ens dot fr
2008-12-19  8:09 ` pault at gcc dot gnu dot org
2008-12-19 17:22 ` tkoenig at gcc dot gnu dot org
2008-12-20  0:01 ` pault at gcc dot gnu dot org
2008-12-20 13:03 ` dominiq at lps dot ens dot fr
2008-12-20 14:29 ` dominiq at lps dot ens dot fr
2008-12-24 17:10 ` pault at gcc dot gnu dot org
2009-03-13 12:53 ` pault at gcc dot gnu dot org
2009-03-31 18:43 ` pault at gcc dot gnu dot org
2009-04-06 10:53 ` pault 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).