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

            Bug ID: 91785
           Summary: ICE in check_assumed_size_reference, at
                    fortran/resolve.c:1601
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

With an invalid declaration since gfortran-9 :


$ cat z1.f90
program p
   complex :: a(*)
   real :: b(2)
   b = a%im
end


$ gfortran-10-20190915 -c z1.f90
0x61adfe gfc_format_decoder
        ../../gcc/fortran/error.c:947
0x139bf3e pp_format(pretty_printer*, text_info*)
        ../../gcc/pretty-print.c:1390
0x1391845 diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
        ../../gcc/diagnostic.c:1025
0x61ac9c gfc_error_opt
        ../../gcc/fortran/error.c:1313
0x61c260 gfc_error(char const*, ...)
        ../../gcc/fortran/error.c:1342
0x67fc82 check_assumed_size_reference
        ../../gcc/fortran/resolve.c:1601
0x68edd3 resolve_variable
        ../../gcc/fortran/resolve.c:5655
0x68edd3 gfc_resolve_expr(gfc_expr*)
        ../../gcc/fortran/resolve.c:6954
0x61df91 find_inquiry_ref
        ../../gcc/fortran/expr.c:1776
0x62136d simplify_ref_chain
        ../../gcc/fortran/expr.c:2023
0x620c87 gfc_simplify_expr(gfc_expr*, int)
        ../../gcc/fortran/expr.c:2220
0x67b4b9 gfc_match_varspec(gfc_expr*, int, bool, bool)
        ../../gcc/fortran/primary.c:2334
0x67ce50 gfc_match_rvalue(gfc_expr**)
        ../../gcc/fortran/primary.c:3570
0x65412e match_primary
        ../../gcc/fortran/matchexp.c:157
0x65412e match_level_1
        ../../gcc/fortran/matchexp.c:211
0x65412e match_mult_operand
        ../../gcc/fortran/matchexp.c:267
0x654378 match_add_operand
        ../../gcc/fortran/matchexp.c:356
0x6545cc match_level_2
        ../../gcc/fortran/matchexp.c:480
0x654722 match_level_3
        ../../gcc/fortran/matchexp.c:551
0x654814 match_level_4
        ../../gcc/fortran/matchexp.c:599

Reply via email to