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/102621] New: [12 Regression] ICE in convert_nonlocal_reference_op, at tree-nested.c:1166 Date: Tue, 05 Oct 2021 18:36:55 +0000 [thread overview] Message-ID: <bug-102621-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102621 Bug ID: 102621 Summary: [12 Regression] ICE in convert_nonlocal_reference_op, at tree-nested.c:1166 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Changed between 20210523 and 20210530 : (contained function f is never referenced) $ cat z1.f90 program p integer :: a(8) !$omp task affinity (iterator(j=1:8) : a(j)) !$omp end task contains integer function f(x) class(*) :: x end end $ cat z2.f90 program p integer :: a(8) !$omp task affinity (iterator(j=1:8) : a(j)) !$omp end task end $ gfortran-12-20211003 -c z2.f90 -fopenmp $ $ gfortran-12-20211003 -c z1.f90 -fopenmp z1.f90:1:9: 1 | program p | ^ internal compiler error: Segmentation fault 0xd41bdf crash_signal ../../gcc/toplev.c:331 0xdd51b3 convert_nonlocal_reference_op ../../gcc/tree-nested.c:1166 0xfd9892 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.c:11016 0xab6f3d walk_gimple_op(gimple*, tree_node* (*)(tree_node**, int*, void*), walk_stmt_info*) ../../gcc/gimple-walk.c:221 0xab7168 walk_gimple_stmt(gimple_stmt_iterator*, tree_node* (*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**, int*, void*), walk_stmt_info*) ../../gcc/gimple-walk.c:620 0xab7310 walk_gimple_seq_mod(gimple**, tree_node* (*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**, int*, void*), walk_stmt_info*) ../../gcc/gimple-walk.c:51 0xab71f1 walk_gimple_stmt(gimple_stmt_iterator*, tree_node* (*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**, int*, void*), walk_stmt_info*) ../../gcc/gimple-walk.c:629 0xab7310 walk_gimple_seq_mod(gimple**, tree_node* (*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**, int*, void*), walk_stmt_info*) ../../gcc/gimple-walk.c:51 0xab71d9 walk_gimple_stmt(gimple_stmt_iterator*, tree_node* (*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**, int*, void*), walk_stmt_info*) ../../gcc/gimple-walk.c:665 0xab7310 walk_gimple_seq_mod(gimple**, tree_node* (*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**, int*, void*), walk_stmt_info*) ../../gcc/gimple-walk.c:51 0xab71f1 walk_gimple_stmt(gimple_stmt_iterator*, tree_node* (*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**, int*, void*), walk_stmt_info*) ../../gcc/gimple-walk.c:629 0xab7310 walk_gimple_seq_mod(gimple**, tree_node* (*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**, int*, void*), walk_stmt_info*) ../../gcc/gimple-walk.c:51 0xdd1da8 walk_body ../../gcc/tree-nested.c:811 0xdd24e8 walk_function ../../gcc/tree-nested.c:822 0xdd24e8 walk_all_functions ../../gcc/tree-nested.c:887 0xdd75e0 lower_nested_functions(tree_node*) ../../gcc/tree-nested.c:3732 0x95284d cgraph_node::analyze() ../../gcc/cgraphunit.c:676 0x9553f7 analyze_functions ../../gcc/cgraphunit.c:1234 0x955dbd symbol_table::finalize_compilation_unit() ../../gcc/cgraphunit.c:2508
next reply other threads:[~2021-10-05 18:36 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-10-05 18:36 gscfq@t-online.de [this message] 2021-10-06 8:41 ` [Bug fortran/102621] " rguenth at gcc dot gnu.org 2021-10-11 8:28 ` [Bug fortran/102621] [12 Regression] ICE in convert_nonlocal_reference_op, at tree-nested.c:1166 since r12-1108-g9a5de4d5af1c10a8 marxin at gcc dot gnu.org 2022-01-20 9:23 ` [Bug fortran/102621] " rguenth at gcc dot gnu.org 2022-01-20 16:01 ` sandra at gcc dot gnu.org 2022-01-20 21:30 ` cvs-commit 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-102621-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: 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).