public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pault at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/30554] [4.2 and 4.1 only] ICE in mio_pointer_ref at module.c:1945 Date: Sat, 03 Feb 2007 21:11:00 -0000 [thread overview] Message-ID: <20070203211109.8644.qmail@sourceware.org> (raw) In-Reply-To: <bug-30554-13404@http.gcc.gnu.org/bugzilla/> ------- Comment #10 from pault at gcc dot gnu dot org 2007-02-03 21:11 ------- This fixes the problem and regtests OK: Index: gcc/fortran/module.c =================================================================== *** gcc/fortran/module.c (revision 121540) --- gcc/fortran/module.c (working copy) *************** write_symtree (gfc_symtree *st) *** 3757,3771 **** pointer_info *p; sym = st->n.sym; ! if (!gfc_check_access (sym->attr.access, sym->ns->default_access) ! || (sym->attr.flavor == FL_PROCEDURE && sym->attr.generic ! && !sym->attr.subroutine && !sym->attr.function)) return; if (check_unique_name (st->name)) return; p = find_pointer (sym); if (p == NULL) gfc_internal_error ("write_symtree(): Symbol not written"); --- 3757,3776 ---- pointer_info *p; sym = st->n.sym; ! if (!sym->attr.use_assoc ! && (!gfc_check_access (sym->attr.access, sym->ns->default_access) ! || (sym->attr.flavor == FL_PROCEDURE && sym->attr.generic ! && !sym->attr.subroutine && !sym->attr.function))) return; if (check_unique_name (st->name)) return; p = find_pointer (sym); + + if (p == NULL && sym->attr.use_assoc) + return; + if (p == NULL) gfc_internal_error ("write_symtree(): Symbol not written"); I need to examine the part of the standard that deals with PRIVATE and PUBLIC in modules to see if this really is right. Watch this space. Paul -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30554
next prev parent reply other threads:[~2007-02-03 21:11 UTC|newest] Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-01-23 9:48 [Bug fortran/30554] New: " burnus at gcc dot gnu dot org 2007-01-23 10:34 ` [Bug fortran/30554] " burnus at gcc dot gnu dot org 2007-01-23 13:30 ` fxcoudert at gcc dot gnu dot org 2007-01-23 20:56 ` burnus at gcc dot gnu dot org 2007-01-28 8:04 ` pault at gcc dot gnu dot org 2007-01-28 12:30 ` patchapp at dberlin dot org 2007-01-28 13:40 ` pault at gcc dot gnu dot org 2007-01-29 10:28 ` pault at gcc dot gnu dot org 2007-02-02 9:27 ` [Bug fortran/30554] [4.2 and 4.1 only] " jellby at yahoo dot com 2007-02-02 10:03 ` burnus at gcc dot gnu dot org 2007-02-03 7:26 ` pault at gcc dot gnu dot org 2007-02-03 21:11 ` pault at gcc dot gnu dot org [this message] 2007-02-04 12:05 ` pault at gcc dot gnu dot org 2007-02-09 12:20 ` patchapp at dberlin dot org 2007-02-11 20:59 ` pault at gcc dot gnu dot org 2007-02-12 23:40 ` pault at gcc dot gnu dot org 2007-02-17 17:17 ` pault at gcc dot gnu dot org 2007-02-17 17:18 ` [Bug fortran/30554] [4.1 " 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=20070203211109.8644.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).