This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/58436] New: [4.9 Regression][OOP] ICE (segfault) in generate_finalization_wrapper for CLASS(*)
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 16 Sep 2013 18:42:17 +0000
- Subject: [Bug fortran/58436] New: [4.9 Regression][OOP] ICE (segfault) in generate_finalization_wrapper for CLASS(*)
- Auto-submitted: auto-generated
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