public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "dominiq at lps dot ens dot fr" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/38538] ICE with elemental character function Date: Sat, 20 Dec 2008 13:03:00 -0000 [thread overview] Message-ID: <20081220130138.22495.qmail@sourceware.org> (raw) In-Reply-To: <bug-38538-9647@http.gcc.gnu.org/bugzilla/> ------- Comment #13 from dominiq at lps dot ens dot fr 2008-12-20 13:01 ------- The patch in comment #12 fixes the pr without causing the regressions reported in comments #8 and #9. Compiling gcc/testsuite/gfortran.dg/char_length_7.f90 gives an ICE: gimplification failed: 2 <integer_cst 0x4168ec30 type <integer_type 0x41611310 integer(kind=4)> constant 2> /opt/gcc/_gcc_clean/gcc/testsuite/gfortran.dg/char_length_7.f90: In function 'xx': /opt/gcc/_gcc_clean/gcc/testsuite/gfortran.dg/char_length_7.f90:30: internal compiler error: gimplification failed and the following code: [ibook-dhum] f90/bug% cat pr31608_4_red_1.f90 character(len=1) :: string = "z" character(len=20) :: tmp = "" tmp = Upper ("abcdefgh") print *, tmp contains Character (len=20) Function Upper (string) Character(len=*) string print *, len(string) print *, size(transfer(string,"xy",len(string))) Upper = "" Upper(1:2) = & transfer(merge(transfer(string,"xy",len(string)), & string(1:2), .true.), "xy") return end function Upper end yields a wrong code: the executable gives 8 4 ab while it gives 8 8 ab when compiled with ifort. Currently regtesting. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38538
next prev parent reply other threads:[~2008-12-20 13:03 UTC|newest] Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-12-16 4:12 [Bug fortran/38538] New: " 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 [this message] 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=20081220130138.22495.qmail@sourceware.org \ --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).