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

--- Comment #1 from Gerhard Steinmetz <gerhard.steinmetz.fort...@t-online.de> 
---
Another source position with obviously invalid code :


$ cat za.f90
program p
   character(:), allocatable :: z
   allocate (character(*) :: z)
end


$ gfortran-7-20160710 za.f90
za.f90:3:0:

    allocate (character(*) :: z)

internal compiler error: in gfc_trans_allocate, at fortran/trans-stmt.c:5698
0x7a17f2 gfc_trans_allocate(gfc_code*)
        ../../gcc/fortran/trans-stmt.c:5698
0x71bf87 trans_code
        ../../gcc/fortran/trans.c:1838
0x74ac88 gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.c:6171
0x6d6860 translate_all_program_units
        ../../gcc/fortran/parse.c:5914
0x6d6860 gfc_parse_file()
        ../../gcc/fortran/parse.c:6120
0x718d12 gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:198

Reply via email to