http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58436

            Bug ID: 58436
           Summary: [4.9 Regression][OOP] ICE (segfault) in
                    generate_finalization_wrapper for CLASS(*)
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org

The following code leads to an ICE; while finalization is a new 4.9 feature,
the code doesn't require it (and works with GCC 4.8). Hence, I labelled it as
regression.


class(*), allocatable :: var
end


Crashes the compiler with a segfault at

0x572cbf generate_finalization_wrapper
        ../../gcc/fortran/class.c:1518
0x572cbf gfc_find_derived_vtab(gfc_symbol*)
        ../../gcc/fortran/class.c:2317
0x5757cd gfc_build_class_symbol(gfc_typespec*, symbol_attribute*,
gfc_array_spec**, bool)
        ../../gcc/fortran/class.c:652

Reply via email to