http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56535
Bug #: 56535 Summary: ICE: in build2_stat, at tree.c:3885 when compiling with -fsanitize=address Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassig...@gcc.gnu.org ReportedBy: domi...@lps.ens.fr CC: ja...@redhat.com, ja...@gcc.gnu.org The following tests FAIL: gfortran.dg/allocate_alloc_opt_10.f90 -O* (internal compiler error) FAIL: gfortran.dg/class_allocate_1.f03 -O* (internal compiler error) FAIL: gfortran.dg/class_allocate_12.f90 -O* (internal compiler error) FAIL: gfortran.dg/class_allocate_3.f03 -O* (internal compiler error) FAIL: gfortran.dg/class_allocate_6.f03 -O* (internal compiler error) FAIL: gfortran.dg/class_defined_operator_1.f03 -O* (internal compiler error) FAIL: gfortran.dg/typebound_operator_9.f03 -O* (internal compiler error) fail to compile with -fsanitize=address. The error is the same ... internal compiler error: in build2_stat, at tree.c:3885 Reduced test case from class_allocate_1.f03 implicit none type t1 integer :: comp = 5 class(t1),pointer :: cc end type type, extends(t1) :: t2 integer :: j end type class(t1),pointer :: cp, cp2 allocate(t2 :: cp2) allocate(cp, source = cp2) deallocate(cp) deallocate(cp2) end