public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "burnus at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/38095] character ICE Date: Wed, 12 Nov 2008 23:43:00 -0000 [thread overview] Message-ID: <20081112234202.9109.qmail@sourceware.org> (raw) In-Reply-To: <bug-38095-9647@http.gcc.gnu.org/bugzilla/> ------- Comment #10 from burnus at gcc dot gnu dot org 2008-11-12 23:42 ------- Some debugging shows that sym->name is "same" and sym->attr.function == 1. Furthermore is arg1->expr_type == EXPR_FUNCTION and arg1->ts.cl->length == NULL. (For cross referencing: http://gcc.gnu.org/ml/fortran/2007-12/msg00160.html is the mail to the patch which added the TODO line.) Using the following patch and calling xmain, the program prints "size(labels)= 1". --- trans-expr.c (Revision 141811) +++ trans-expr.c @@ -1912,8 +1912,9 @@ gfc_map_intrinsic_function (gfc_expr *ex case GFC_ISYM_LEN: /* TODO figure out why this condition is necessary. */ if (sym->attr.function - && arg1->ts.cl->length->expr_type != EXPR_CONSTANT - && arg1->ts.cl->length->expr_type != EXPR_VARIABLE) + && (arg1->ts.cl->length == NULL + || (arg1->ts.cl->length->expr_type != EXPR_CONSTANT + && arg1->ts.cl->length->expr_type != EXPR_VARIABLE))) return false; new_expr = gfc_copy_expr (arg1->ts.cl->length); -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38095
next prev parent reply other threads:[~2008-11-12 23:43 UTC|newest] Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-11-12 18:58 [Bug fortran/38095] New: " vivekrao4 at yahoo dot com 2008-11-12 20:29 ` [Bug fortran/38095] " kargl at gcc dot gnu dot org 2008-11-12 20:30 ` kargl at gcc dot gnu dot org 2008-11-12 20:40 ` kargl at gcc dot gnu dot org 2008-11-12 21:10 ` dominiq at lps dot ens dot fr 2008-11-12 22:13 ` vivekrao4 at yahoo dot com 2008-11-12 22:28 ` dominiq at lps dot ens dot fr 2008-11-12 22:38 ` burnus at gcc dot gnu dot org 2008-11-12 22:44 ` mikael at gcc dot gnu dot org 2008-11-12 23:03 ` kargl at gcc dot gnu dot org 2008-11-12 23:43 ` burnus at gcc dot gnu dot org [this message] 2008-11-12 23:46 ` burnus at gcc dot gnu dot org 2008-11-15 10:34 ` burnus at gcc dot gnu dot org 2008-11-15 17:41 ` pault at gcc dot gnu dot org 2008-11-15 18:07 ` burnus at gcc dot gnu dot org 2008-11-16 12:23 ` pault at gcc dot gnu dot org 2008-11-16 14:22 ` burnus at gcc dot gnu dot org 2008-11-16 14:22 ` burnus 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=20081112234202.9109.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).