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

            Bug ID: 83741
           Summary: [8 Regression] ICE in gfc_match_allocate, at
                    fortran/match.c:4074
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

With following invalid testcases :


$ cat z1.f90
program p
   allocate (character(*) :: x)
end

$ cat z2.f90
module m
   allocate (character(*) :: x)
end


$ gfortran-8-20171203 -c z1.f90
z1.f90:2:29:

    allocate (character(*) :: x)
                             1
Error: Allocate-object at (1) is neither a data pointer nor an allocatable
variable


$ gfortran-8-20171210 -c z1.f90
f951: internal compiler error: Segmentation fault
#...


$ gfortran-8-20180107 -c z1.f90
f951: internal compiler error: Segmentation fault
0xb8c1ef crash_signal
        ../../gcc/toplev.c:325
0x6d46ee gfc_match_allocate()
        ../../gcc/fortran/match.c:4074
0x6f1d39 match_word_omp_simd
        ../../gcc/fortran/parse.c:93
0x6f5ba9 match_word
        ../../gcc/fortran/parse.c:439
0x6f5ba9 decode_statement
        ../../gcc/fortran/parse.c:439
0x6f7264 next_free
        ../../gcc/fortran/parse.c:1226
0x6f7264 next_statement
        ../../gcc/fortran/parse.c:1458
0x6f906c parse_spec
        ../../gcc/fortran/parse.c:3652
0x6fb003 parse_progunit
        ../../gcc/fortran/parse.c:5649
0x6fc5e4 gfc_parse_file()
        ../../gcc/fortran/parse.c:6189
0x742cef gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:204

Reply via email to