https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104228

            Bug ID: 104228
           Summary: [9/10/11/12 Regression] ICE in df_install_ref, at
                    df-scan.cc:2294
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Affects versions down to r8 :


$ cat z1.f90
program p
   character(:), save, allocatable :: x(:)
   call s
contains
   subroutine s
      associate (y => x)
         y = [x]
      end associate
   end
end


$ cat z2.f90
program p
   character(:), allocatable :: x(:)
   call s
contains
   subroutine s
      associate (y => x)
         y = [x]
      end associate
   end
end


$ gfortran-12-20220123 -c z1.f90 -fsanitize=address
during RTL pass: no-opt dfinit
z1.f90:3:9:

    3 |    call s
      |         ^
internal compiler error: Segmentation fault
0xe6bd5f crash_signal
        ../../gcc/toplev.cc:322
0x98c58f df_install_ref
        ../../gcc/df-scan.cc:2294
0x98c707 df_install_refs
        ../../gcc/df-scan.cc:2375
0x98c87e df_refs_add_to_chains
        ../../gcc/df-scan.cc:2429
0x994b75 df_bb_refs_record(int, bool)
        ../../gcc/df-scan.cc:3351
0x9951a4 df_scan_blocks()
        ../../gcc/df-scan.cc:588
0x97df85 rest_of_handle_df_initialize
        ../../gcc/df-core.cc:715
0x97df85 execute
        ../../gcc/df-core.cc:747

... or other backtraces

Reply via email to