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/56535] New: ICE: in build2_stat, at tree.c:3885 when compiling with -fsanitize=address


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: 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)
 deallocate(cp)
 deallocate(cp2)

end


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