public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jakub at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/28600] [4.2 regression] ICE on character pointer assignment Date: Wed, 09 Aug 2006 14:29:00 -0000 [thread overview] Message-ID: <20060809142936.5005.qmail@sourceware.org> (raw) In-Reply-To: <bug-28600-10259@http.gcc.gnu.org/bugzilla/> ------- Comment #5 from jakub at gcc dot gnu dot org 2006-08-09 14:29 ------- It was caused by the openmp changes, but guess usually the parent routine at least touches the dummy argument and therefore it would be added to the right context. I was testing: --- trans-decl.c.jj 2006-08-09 15:39:36.000000000 +0200 +++ trans-decl.c 2006-08-09 15:44:35.000000000 +0200 @@ -884,7 +884,10 @@ gfc_get_symbol_decl (gfc_symbol * sym) if (TREE_CODE (length) == VAR_DECL && DECL_CONTEXT (length) == NULL_TREE) { - gfc_add_decl_to_function (length); + if (sym->ns->proc_name->backend_decl == current_function_decl) + gfc_add_decl_to_function (length); + else + gfc_add_decl_to_parent_function (length); gfc_defer_symbol_init (sym); } } before I saw Paul's patch on gcc-patches, guess both versions will DTRT. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28600
next prev parent reply other threads:[~2006-08-09 14:29 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-08-04 12:55 [Bug fortran/28600] New: " fxcoudert at gcc dot gnu dot org 2006-08-04 12:55 ` [Bug fortran/28600] " fxcoudert at gcc dot gnu dot org 2006-08-04 19:36 ` pault at gcc dot gnu dot org 2006-08-04 20:39 ` pinskia at gcc dot gnu dot org 2006-08-08 14:15 ` [Bug fortran/28600] [4.2 regression] " paul dot richard dot thomas at cea dot fr 2006-08-09 14:00 ` jakub at gcc dot gnu dot org 2006-08-09 14:20 ` patchapp at dberlin dot org 2006-08-09 14:29 ` jakub at gcc dot gnu dot org [this message] 2006-08-09 18:03 ` pinskia at gcc dot gnu dot org 2006-08-09 18:27 ` pault at gcc dot gnu dot org 2006-08-09 18:36 ` jakub at gcc dot gnu dot org 2006-08-09 22:10 ` pinskia at gcc dot gnu dot org 2006-08-20 5:47 ` pault at gcc dot gnu dot org 2006-08-20 18:12 ` pault at gcc dot gnu dot org 2006-09-22 11:48 ` jakub 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=20060809142936.5005.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).