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

            Bug ID: 82589
           Summary: ICE in gfc_get_pdt_instance, at fortran/decl.c:3278
           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: ---

A combination of type-param-attr-spec LEN or KIND with another 
attribute like PRIVATE conflicts with f2008 4.5.3.1 :


$ cat z1.f90
module m
   type t(a)
      integer, len, private :: a
   end type
end
program p
   use m
   type(t(a=:)), allocatable :: x
   print *, x
end


$ gfortran-8-20171015 -c z1.f90
f951: internal compiler error: Segmentation fault
0xb5a08f crash_signal
        ../../gcc/toplev.c:326
0x67a008 gfc_get_pdt_instance(gfc_actual_arglist*, gfc_symbol**,
gfc_actual_arglist**)
        ../../gcc/fortran/decl.c:3278
0x680221 gfc_match_decl_type_spec(gfc_typespec*, int)
        ../../gcc/fortran/decl.c:3787
0x68115c gfc_match_data_decl()
        ../../gcc/fortran/decl.c:5605
0x6dbac9 match_word_omp_simd
        ../../gcc/fortran/parse.c:93
0x6df17e match_word
        ../../gcc/fortran/parse.c:376
0x6df17e decode_statement
        ../../gcc/fortran/parse.c:376
0x6e0fb4 next_free
        ../../gcc/fortran/parse.c:1225
0x6e0fb4 next_statement
        ../../gcc/fortran/parse.c:1457
0x6e289c parse_spec
        ../../gcc/fortran/parse.c:3831
0x6e4d93 parse_progunit
        ../../gcc/fortran/parse.c:5634
0x6e6354 gfc_parse_file()
        ../../gcc/fortran/parse.c:6174
0x72a6bf gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:204

Reply via email to