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

            Bug ID: 77501
           Summary: ICE in gfc_match_generic, at fortran/decl.c:9429
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fort...@t-online.de
  Target Milestone: ---

With invalid code, down to at least 4.8 :
(ambiguous binding skeleton only to trigger an ICE)


$ cat z1.f90
module m
   type t
   contains
      generic :: f => g
      generic :: g => h
   end type
end


$ gfortran-7-20160904 z1.f90
f951: internal compiler error: in gfc_match_generic, at fortran/decl.c:9429
0x681861 gfc_match_generic()
        ../../gcc/fortran/decl.c:9429
0x6d2f39 match_word_omp_simd
        ../../gcc/fortran/parse.c:93
0x6d7bc5 match_word
        ../../gcc/fortran/parse.c:492
0x6d7bc5 decode_statement
        ../../gcc/fortran/parse.c:492
0x6d8444 next_free
        ../../gcc/fortran/parse.c:1143
0x6d8444 next_statement
        ../../gcc/fortran/parse.c:1376
0x6d982c parse_derived_contains
        ../../gcc/fortran/parse.c:2649
0x6d982c parse_derived
        ../../gcc/fortran/parse.c:3203
0x6d982c parse_spec
        ../../gcc/fortran/parse.c:3663
0x6dc998 parse_module
        ../../gcc/fortran/parse.c:5720
0x6dd389 gfc_parse_file()
        ../../gcc/fortran/parse.c:6036
0x71f602 gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:198

Reply via email to