[Bug fortran/56535] New: ICE: in build2_stat, at tree.c:3885 when compiling with -fsanitize=address

dominiq at lps dot ens.fr gcc-bugzilla@gcc.gnu.org
Tue Mar 5 13:52:00 GMT 2013


             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: unassigned@gcc.gnu.org
        ReportedBy: dominiq@lps.ens.fr
                CC: jakub@redhat.com, janus@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)


More information about the Gcc-bugs mailing list