public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "vivekrao4 at yahoo dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/38538] New: ICE with elemental character function Date: Tue, 16 Dec 2008 04:12:00 -0000 [thread overview] Message-ID: <bug-38538-9647@http.gcc.gnu.org/bugzilla/> (raw) 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
next reply other threads:[~2008-12-16 4:12 UTC|newest] Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-12-16 4:12 vivekrao4 at yahoo dot com [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-38538-9647@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).