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

--- Comment #19 from Harald Anlauf <anlauf at gmx dot de> ---
(In reply to Jerry DeLisle from comment #17)
> Created attachment 34765 [details]
> Handle KIND=1 and KIND=2

Jerry,

I applied your patch on top of rev. 220730.
Unfortunately it ICEs on the following simple code:

  integer(4) :: count_rate_i4
  call system_clock (count_rate=count_rate_i4)
end

gfcbug128x.f90:2:0:

   call system_clock (count_rate=count_rate_i4)
 1
internal compiler error: Segmentation fault
0x882b340 crash_signal
        ../../trunk/gcc/toplev.c:383
0x834b500 conv_intrinsic_system_clock
        ../../trunk/gcc/fortran/trans-intrinsic.c:9479
0x834b500 gfc_conv_intrinsic_subroutine(gfc_code*)
        ../../trunk/gcc/fortran/trans-intrinsic.c:9529
0x82ebeba trans_code
        ../../trunk/gcc/fortran/trans.c:1718
0x831c353 gfc_generate_function_code(gfc_namespace*)
        ../../trunk/gcc/fortran/trans-decl.c:5850
0x82a461b translate_all_program_units
        ../../trunk/gcc/fortran/parse.c:5341
0x82a461b gfc_parse_file()
        ../../trunk/gcc/fortran/parse.c:5538
0x82e6613 gfc_be_parse_file
        ../../trunk/gcc/fortran/f95-lang.c:228

Reply via email to