https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78815
Bug ID: 78815 Summary: ICE: segfault with -fopenmp -fsanitize=address Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- Follow-up of pr77973, since about 20161113. An example with an automatic explicit-shape array : $ cat z1.f90 subroutine s(n) integer :: i, n, z(n) !$omp target !$omp parallel do do i = 1, n z(i) = 1 end do !$omp end target end $ gfortran-7-20161211 -fsanitize=address -fopenmp -c z1.f90 f951: internal compiler error: Segmentation fault 0xc4e79f crash_signal ../../gcc/toplev.c:333 0x9f8a7e hash_table<default_hash_traits<tree_node*>, xcallocator>::find_slot_with_hash(tree_node* const&, unsigned int, insert_option) ../../gcc/hash-table.h:859 0x9e7d98 hash_set<tree_node*, default_hash_traits<tree_node*> >::add(tree_node* const&) ../../gcc/hash-set.h:47 0x9e7d98 gimplify_decl_expr ../../gcc/gimplify.c:1630 0x9d87da gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../gcc/gimplify.c:11379 0x9db806 gimplify_stmt(tree_node**, gimple**) ../../gcc/gimplify.c:6459 0x9db852 gimplify_and_add(tree_node*, gimple**) ../../gcc/gimplify.c:434 0x9f935a force_gimple_operand_1(tree_node*, gimple**, bool (*)(tree_node*), tree_node*) ../../gcc/gimplify-me.c:73 0xb485ff lower_omp_target ../../gcc/omp-low.c:16846 0xb485ff lower_omp_1 ../../gcc/omp-low.c:17521 0xb485ff lower_omp ../../gcc/omp-low.c:17614 0xb4333c lower_omp_1 ../../gcc/omp-low.c:17453 0xb4333c lower_omp ../../gcc/omp-low.c:17614 0xb43cec lower_omp_1 ../../gcc/omp-low.c:17462 0xb43cec lower_omp ../../gcc/omp-low.c:17614 0xb4af5f execute_lower_omp ../../gcc/omp-low.c:18983 0xb4af5f execute ../../gcc/omp-low.c:19020