public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "gscfq@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/107075] New: ICE in get, at cgraph.h:461
Date: Wed, 28 Sep 2022 17:36:49 +0000	[thread overview]
Message-ID: <bug-107075-4@http.gcc.gnu.org/bugzilla/> (raw)

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107075

            Bug ID: 107075
           Summary: ICE in get, at cgraph.h:461
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Affects versions down to at least r5 :
(both valid, works without block construct)


$ cat z1.f90
program p
   implicit none
   integer, target :: a(3)
   block
      integer, pointer :: z => a(2)
      a = [1, 2, 3]
      z = 7
      print *, a, z
   end block
end


$ cat z2.f90
program p
   implicit none
   integer, target :: a(3)
   integer, pointer :: z => a(2)
   a = [1, 2, 3]
   z = 7
   print *, a, z
end


$ gfortran-13-20220925 z2.f90 && ./a.out
           1           7           3           7


$ gfortran-13-20220925 -c z1.f90
f951: internal compiler error: in get, at cgraph.h:461
0x131212f symtab_node::get(tree_node const*)
        ../../gcc/cgraph.h:458
0x131212f varpool_node::get(tree_node const*)
        ../../gcc/cgraph.h:2785
0x131212f varpool_node::get_create(tree_node*)
        ../../gcc/varpool.cc:145
0xa1e20f record_reference
        ../../gcc/cgraphbuild.cc:82
0x12ad193 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*,
tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*))
        ../../gcc/tree.cc:11249
0xa1ecb5 record_references_in_initializer(tree_node*, bool)
        ../../gcc/cgraphbuild.cc:386
0x1313037 varpool_node::analyze()
        ../../gcc/varpool.cc:537
0xa2506e analyze_functions
        ../../gcc/cgraphunit.cc:1294
0xa2624d symbol_table::finalize_compilation_unit()
        ../../gcc/cgraphunit.cc:2500

             reply	other threads:[~2022-09-28 17:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-28 17:36 gscfq@t-online.de [this message]
2022-09-28 20:13 ` [Bug fortran/107075] " anlauf at gcc dot gnu.org
2022-09-29  8:17 ` rguenth at gcc dot gnu.org
2022-09-29  9:05 ` mikael at gcc dot gnu.org
2022-09-29 21:16 ` anlauf at gcc dot gnu.org
2022-10-06 18:02 ` anlauf at gcc dot gnu.org
2022-10-06 19:19 ` anlauf at gcc dot gnu.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-107075-4@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: link
Be 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).