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

            Bug ID: 95502
           Summary: ICE in gfc_check_do_variable, at fortran/parse.c:4446
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Changed between 20181028 (error) and 20181104 (ICE) :


$ cat z1.f90
program p
   integer, pointer :: z
   nullify(z%kind)
end


$ cat z2.f90
program p
   complex, pointer :: z
   nullify(z%kind)
   ! nullify(z%re)
   ! nullify(z%im)
end


$ cat z3.f90
program p
   character, pointer :: z
   nullify(z%len)
   nullify(z%kind)
end


$ gfortran-11-20200531 -c z1.f90
f951: internal compiler error: Segmentation fault
0xbc37bf crash_signal
        ../../gcc/toplev.c:328
0x6aeed8 gfc_check_do_variable(gfc_symtree*)
        ../../gcc/fortran/parse.c:4446
0x6895ab gfc_match_nullify()
        ../../gcc/fortran/match.c:4625
0x6a7651 match_word
        ../../gcc/fortran/parse.c:65
0x6ab35d decode_statement
        ../../gcc/fortran/parse.c:527
0x6ac41a next_free
        ../../gcc/fortran/parse.c:1279
0x6ac41a next_statement
        ../../gcc/fortran/parse.c:1511
0x6ada6b parse_spec
        ../../gcc/fortran/parse.c:3922
0x6b083c parse_progunit
        ../../gcc/fortran/parse.c:5851
0x6b1f19 gfc_parse_file()
        ../../gcc/fortran/parse.c:6392
0x6fdfff gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:210

Reply via email to