This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/88047] New: [9 Regression] ICE in gfc_find_vtab, at fortran/class.c:2843


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

            Bug ID: 88047
           Summary: [9 Regression] ICE in gfc_find_vtab, at
                    fortran/class.c:2843
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Changed between 20180909 and 20180916 :


$ cat z1.f90
program p
   type t
   end type
   class(t) :: x(2)
   class(t), parameter :: a(2) = t()
   x = a
end


$ gfortran-9-20180909 -c z1.f90
z1.f90:5:30:

5 |    class(t), parameter :: a(2) = t()
  |                              1
Error: CLASS variable 'a' at (1) cannot have the PARAMETER attribute
z1.f90:4:19:

4 |    class(t) :: x(2)
  |                   1
Error: CLASS variable 'x' at (1) must be dummy, allocatable or pointer
z1.f90:6:3:

6 |    x = a
  |   1
Error: Nonallocatable variable must not be polymorphic in intrinsic assignment
at (1) - check that there is a matching specific subroutine for '=' operator


$ gfortran-9-20181111 -c z1.f90
f951: internal compiler error: Segmentation fault
0xb297bf crash_signal
        ../../gcc/toplev.c:325
0x5fdeb3 gfc_find_vtab(gfc_typespec*)
        ../../gcc/fortran/class.c:2843
0x64a482 gfc_match_assignment()
        ../../gcc/fortran/match.c:1378
0x66d020 match_word
        ../../gcc/fortran/parse.c:65
0x66d020 decode_statement
        ../../gcc/fortran/parse.c:361
0x66eb5a next_free
        ../../gcc/fortran/parse.c:1234
0x66eb5a next_statement
        ../../gcc/fortran/parse.c:1466
0x67016b parse_spec
        ../../gcc/fortran/parse.c:3858
0x672c37 parse_progunit
        ../../gcc/fortran/parse.c:5671
0x6742b9 gfc_parse_file()
        ../../gcc/fortran/parse.c:6211
0x6bc89f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:204

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]