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

            Bug ID: 108452
           Summary: ICE in gfc_trans_use_stmts, at
                    fortran/trans-decl.cc:5347
           Product: gcc
           Version: 13.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 at least r5 :


$ cat z1.f90
module m
   interface g
      procedure f
   end interface
contains
   function f()
   end
end
program p
   use m, u => g, v => g
end


$ cat z2.f90
module m
   interface g
      procedure f
   end interface
contains
   function f()
   end
end
program p
   use m, u => g
end


$ gfortran-13-20230115 -c z2.f90
$
$ gfortran-13-20230115 -c z1.f90
z1.f90:10:7:

   10 |    use m, u => g, v => g
      |       1
internal compiler error: in gfc_trans_use_stmts, at fortran/trans-decl.cc:5347
0x8a6fd3 gfc_trans_use_stmts
        ../../gcc/fortran/trans-decl.cc:5347
0x8a783b gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.cc:7837
0x82968e translate_all_program_units
        ../../gcc/fortran/parse.cc:6721
0x82968e gfc_parse_file()
        ../../gcc/fortran/parse.cc:7027
0x876eff gfc_be_parse_file
        ../../gcc/fortran/f95-lang.cc:229

Reply via email to