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

            Bug ID: 107576
           Summary: [10/11/12/13 Regression] ICE in
                    gfc_conv_procedure_call, at fortran/trans-expr.cc:6193
           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: ---

Started with r7 :


$ cat z1.f90
program p
   integer, pointer :: z(:) => null()
   call s(z)
   call s(null(z))
end


$ gfortran-6 -c z1.f90 -std=legacy
$
$ gfortran-13-20221106 -c z1.f90 -std=legacy
z1.f90:4:18:

    4 |    call s(null(z))
      |                  1
Warning: Unexpected NULL() intrinsic at (1) to dummy '_formal_0'
z1.f90:4:18: internal compiler error: in gfc_conv_procedure_call, at
fortran/trans-expr.cc:6193
0x8afc1a gfc_conv_procedure_call(gfc_se*, gfc_symbol*, gfc_actual_arglist*,
gfc_expr*, vec<tree_node*, va_gc, vl_embed>*)
        ../../gcc/fortran/trans-expr.cc:6191
0x8ed790 gfc_trans_call(gfc_code*, bool, tree_node*, tree_node*, bool)
        ../../gcc/fortran/trans-stmt.cc:422
0x8740f8 trans_code
        ../../gcc/fortran/trans.cc:2018
0x89d4ce gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.cc:7659
0x81f57e translate_all_program_units
        ../../gcc/fortran/parse.cc:6696
0x81f57e gfc_parse_file()
        ../../gcc/fortran/parse.cc:7002
0x86ccbf gfc_be_parse_file
        ../../gcc/fortran/f95-lang.cc:229

Reply via email to