https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63976

            Bug ID: 63976
           Summary: internal compiler error: Segmentation fault
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: sanitizer
          Assignee: unassigned at gcc dot gnu.org
          Reporter: Joost.VandeVondele at mat dot ethz.ch
                CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
                    jakub at gcc dot gnu.org, kcc at gcc dot gnu.org

current trunk, ICEs for

> cat bug.f90
  SUBROUTINE print_kind_info ( iw )
    WRITE ( iw, '( /,T2,A,T79,A,2(/,T2,A,T75,I6),3(/,T2,A,T67,E14.8) )' ) &
         '           Kind value:', KIND ( 'C' )
  END SUBROUTINE print_kind_info

> gfortran  -c -fsanitize=undefined -O1  bug.f90
bug.f90:4:0:

   END SUBROUTINE print_kind_info
 ^
internal compiler error: Segmentation fault
0xb2205f crash_signal
    ../../gcc/gcc/toplev.c:359
0xda07f0 contains_struct_check
    ../../gcc/gcc/tree.h:2872
0xda07f0 build_call_expr_loc_array(unsigned int, tree_node*, int, tree_node**)
    ../../gcc/gcc/tree.c:10578
0xda097d build_call_expr_loc(unsigned int, tree_node*, int, ...)
    ../../gcc/gcc/tree.c:10611
0xb418eb instrument_object_size
    ../../gcc/gcc/ubsan.c:1555
0xb44119 execute
    ../../gcc/gcc/ubsan.c:1705
Please submit a full bug report,

The error only happens at -O1, not -O0

Reply via email to