https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69055
Bug ID: 69055 Summary: Internal compiler error -fsanitize=float-cast-overflow Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: physiker at toast2 dot net Target Milestone: --- Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Build: gcc-Version 6.0.0 20151223 Created attachment 37134 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37134&action=edit Source code t.f90 SUBROUTINE TSTD IMPLICIT NONE INTEGER*4 N COMMON /COMMI/DATEN(10) type T_daten sequence real(8) daten end type T_daten type(T_daten) :: daten integer(4) :: j=1 N=daten(j)%daten END SUBROUTINE TSTD peter@linux:~/devel/build-gcc> LANG=C gfortran-6 -v -save-temps -c t.f90 -fsanitize=float-cast-overflow Using built-in specs. COLLECT_GCC=gfortran-6 Target: x86_64-pc-linux-gnu Configured with: ../gcc/configure --enable-__cxa_atexit --program-suffix=-6 --enable-languages=c,c++,fortran --with-system-zlib --disable-multilib Thread model: posix gcc version 6.0.0 20151223 (experimental) (GCC) COLLECT_GCC_OPTIONS='-v' '-save-temps' '-c' '-fsanitize=float-cast-overflow' '-mtune=generic' '-march=x86-64' /usr/local/lib/gcc/x86_64-pc-linux-gnu/6.0.0/f951 t.f90 -quiet -dumpbase t.f90 -mtune=generic -march=x86-64 -auxbase t -version -fsanitize=float-cast-overflow -fintrinsic-modules-path /usr/local/lib64/gcc/x86_64-pc-linux-gnu/6.0.0/finclude -o t.s GNU Fortran (GCC) version 6.0.0 20151223 (experimental) (x86_64-pc-linux-gnu) compiled by GNU C version 6.0.0 20151223 (experimental), GMP version 5.1.3, MPFR version 3.1.2, MPC version 1.0.2, isl version none GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU Fortran2008 (GCC) version 6.0.0 20151223 (experimental) (x86_64-pc-linux-gnu) compiled by GNU C version 6.0.0 20151223 (experimental), GMP version 5.1.3, MPFR version 3.1.2, MPC version 1.0.2, isl version none GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 t.f90:18:0: N=daten(j)%daten internal compiler error: Segmentation fault 0xb7b24f crash_signal ../../gcc/gcc/toplev.c:334 0xe07e08 contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*) ../../gcc/gcc/tree.h:3111 0xe07e08 build_call_expr_loc_array(unsigned int, tree_node*, int, tree_node**) ../../gcc/gcc/tree.c:11011 0xe07f7f build_call_expr_loc(unsigned int, tree_node*, int, ...) ../../gcc/gcc/tree.c:11044 0xb9f5f5 ubsan_instrument_float_cast(unsigned int, tree_node*, tree_node*, tree_node*) ../../gcc/gcc/ubsan.c:1611 0x7d8479 convert_to_integer_1 ../../gcc/gcc/convert.c:923 0x6a7a6a convert(tree_node*, tree_node*) ../../gcc/gcc/fortran/convert.c:101 0x7011af gfc_conv_intrinsic_conversion ../../gcc/gcc/fortran/trans-intrinsic.c:336 0x71620f gfc_conv_intrinsic_function(gfc_se*, gfc_expr*) ../../gcc/gcc/fortran/trans-intrinsic.c:7902 0x6f3912 gfc_conv_expr(gfc_se*, gfc_expr*) ../../gcc/gcc/fortran/trans-expr.c:7522 0x6fb83d gfc_trans_assignment_1 ../../gcc/gcc/fortran/trans-expr.c:9249 0x6b5da1 trans_code ../../gcc/gcc/fortran/trans.c:1676 0x6e44a8 gfc_generate_function_code(gfc_namespace*) ../../gcc/gcc/fortran/trans-decl.c:6083 0x671310 translate_all_program_units ../../gcc/gcc/fortran/parse.c:5612 0x671310 gfc_parse_file() ../../gcc/gcc/fortran/parse.c:5818 0x6b2855 gfc_be_parse_file ../../gcc/gcc/fortran/f95-lang.c:201 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. internal compiler error with gcc 5.2 on linux and with gcc 5.3 on os/x mavericks.