[Bug fortran/85879] New: [6/7/8/9 Regression] ICE in expand_debug_locations, at cfgexpand.c:5405

gscfq@t-online.de gcc-bugzilla@gcc.gnu.org
Tue May 22 18:08:00 GMT 2018


            Bug ID: 85879
           Summary: [6/7/8/9 Regression] ICE in expand_debug_locations, at
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

A release version needs option -g at -O[gs123] :

$ cat z1.f90
program p
   integer, pointer :: i
   integer, target :: j
   j = 2
   i => j
   !$acc parallel
   j = i
   !$acc end parallel

$ gfortran-5 -c z1.f90 -g -O2 -fopenacc
$ gfortran-9-20180520 -c z1.f90 -g -O2 -fopenacc
during RTL pass: expand

    !$acc parallel

internal compiler error: in expand_debug_locations, at cfgexpand.c:5405
0x80bcca expand_debug_locations
0x80bcca execute

Configured with --enable-checking=yes :

$ gfortran-9-20180520 -c z1.f90 -g -O2 -fopenacc

    j = i

Error: non-trivial conversion at assignment
integer(kind=4) *
i.4 = *D.3808;
during GIMPLE pass: lower
z1.f90:7:0: internal compiler error: verify_gimple failed
0xd3b7bd verify_gimple_in_seq(gimple*)
0xc0d220 execute_function_todo
0xc0daf9 execute_todo

More information about the Gcc-bugs mailing list