https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86470
--- Comment #3 from janus at gcc dot gnu.org --- On current trunk I get the following backtrace: internal compiler error: Segmentation fault 0xc71fdf crash_signal /home/jweil/github/gcc/trunk/gcc/toplev.c:325 0x948110 contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*) /home/jweil/github/gcc/trunk/gcc/tree.h:3226 0x948110 fold_convert_loc(unsigned int, tree_node*, tree_node*) /home/jweil/github/gcc/trunk/gcc/fold-const.c:2388 0x6cb4d6 gfc_call_malloc(stmtblock_t*, tree_node*, tree_node*) /home/jweil/github/gcc/trunk/gcc/fortran/trans.c:605 0x6ddd87 duplicate_allocatable /home/jweil/github/gcc/trunk/gcc/fortran/trans-array.c:8079 0x6ddfa5 gfc_duplicate_allocatable_nocopy(tree_node*, tree_node*, tree_node*, int) /home/jweil/github/gcc/trunk/gcc/fortran/trans-array.c:8172 0x74338f gfc_walk_alloc_comps /home/jweil/github/gcc/trunk/gcc/fortran/trans-openmp.c:383 0x746052 gfc_omp_clause_default_ctor(tree_node*, tree_node*, tree_node*) /home/jweil/github/gcc/trunk/gcc/fortran/trans-openmp.c:471 0xb549dc lower_rec_input_clauses /home/jweil/github/gcc/trunk/gcc/omp-low.c:4104 It's strange that we run into 'gfc_walk_alloc_comps' at all, although no allocatable components are involved. Possibly 'gfc_has_alloc_comps' is buggy?