http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57297
--- Comment #7 from gretay at gcc dot gnu.org --- (In reply to Mikael Morin from comment #5) > Created attachment 30138 [details] > frontend patch, second try > > This variant reduces the amount of VIEW_CONVERT_EXPR, which should make the > code less confusing downstream. This patch fixes the failure in this test, but causes ICE in some fortran tests on qemu for arm-none-eabi. For example: FAIL: gfortran.dg/auto_dealloc_2.f90 -O (internal compiler error) Executing on host: /work/apr-builds/pr57297/fortran-fix2/arm-none-eabi/gcc2/gcc/testsuite/gfortran1/../../gfortran -B/work/apr-builds/pr57297/fortran-fix2/arm-none-eabi/gcc2/gcc/testsuite/gfortran1/../../ -B/work/apr-builds/pr57297fortran-fix2/arm-none-eabi/gcc2/arm-none-eabi/./libgfortran/ /work/local-checkouts/gcc-git/gcc/testsuite/gfortran.dg/auto_dealloc_2.f90 -fno-diagnostics-show-caret -O -fdump-tree-original -S -specs=rdimon.specs -Wa,-mno-warn-deprecated -o auto_dealloc_2.s (timeout = 60) /work/local-checkouts/gcc-git/gcc/testsuite/gfortran.dg/auto_dealloc_2.f90: In function 'init': /work/local-checkouts/gcc-git/gcc/testsuite/gfortran.dgauto_dealloc_2.f90:21:0: internal compiler error: Segmentation fault 0x886585 crash_signal /work/local-checkouts/gcc-git/gcc/toplev.c:332 0x4c1b2e structure_alloc_comps /work/local-checkouts/gcc-git/gcc/fortran/trans-array.c:7444 0x4df6e5 init_intent_out_dt /work/local-checkouts/gcc-git/gcc/fortran/trans-decl.c:3519 0x4df6e5 gfc_trans_deferred_vars(gfc_symbol*, gfc_wrapped_block*) /work/local-checkouts/gcc-git/gcc/fortran/trans-decl.c:3631 0x4e2c7e gfc_generate_function_code(gfc_namespace*) /work/local-checkouts/gcc-git/gcc/fortran/trans-decl.c:5506 0x4e2ef7 gfc_generate_contained_functions /work/local-checkouts/gcc-git/gcc/fortran/trans-decl.c:4576 0x4e2ef7 gfc_generate_function_code(gfc_namespace*) /work/local-checkouts/gcc-git/gcc/fortran/trans-decl.c:5379 0x476172 translate_all_program_units /work/local-checkouts/gcc-git/gcc/fortran/parse.c:4469 0x476172 gfc_parse_file() /work/local-checkouts/gcc-git/gcc/fortran/parse.c:4666 0x4b48a5 gfc_be_parse_file /work/local-checkouts/gcc-git/gcc/fortran/f95-lang.c:189