[Bug fortran/92072] New: [10 Regression] ICE on include from other directory

anlauf at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Oct 11 19:53:00 GMT 2019


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

            Bug ID: 92072
           Summary: [10 Regression] ICE on include from other directory
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: anlauf at gcc dot gnu.org
  Target Milestone: ---

The following ICE appears to be a recent regression:

% cat bug.f90
module bug
  implicit none
  public
  include 'inc1.f90'
end module bug

% cat otherdir/inc1.f90
  character*1 c

gcc-10 svn rev. 276902.

% gfc-10 -c bug.f90 -I otherdir
0x17941f5 linemap_position_for_loc_and_offset(line_maps*, unsigned int,
unsigned int)
        ../../trunk/libcpp/line-map.c:930
0x653ce2 gfc_format_decoder
        ../../trunk/gcc/fortran/error.c:981
0x176cb00 pp_format(pretty_printer*, text_info*)
        ../../trunk/gcc/pretty-print.c:1391
0x1756d05 diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
        ../../trunk/gcc/diagnostic.c:1057
0x653e59 gfc_report_diagnostic
        ../../trunk/gcc/fortran/error.c:782
0x653f65 gfc_error_opt
        ../../trunk/gcc/fortran/error.c:1351
0x655450 gfc_error(char const*, ...)
        ../../trunk/gcc/fortran/error.c:1380
0x6b72f8 gfc_match_rvalue(gfc_expr**)
        ../../trunk/gcc/fortran/primary.c:3586
0x68d32e match_primary
        ../../trunk/gcc/fortran/matchexp.c:157
0x68d32e match_level_1
        ../../trunk/gcc/fortran/matchexp.c:211
0x68d32e match_mult_operand
        ../../trunk/gcc/fortran/matchexp.c:267
0x68d578 match_add_operand
        ../../trunk/gcc/fortran/matchexp.c:356
0x68d7cc match_level_2
        ../../trunk/gcc/fortran/matchexp.c:480
0x68d922 match_level_3
        ../../trunk/gcc/fortran/matchexp.c:551
0x68da14 match_level_4
        ../../trunk/gcc/fortran/matchexp.c:599
0x68da14 match_and_operand
        ../../trunk/gcc/fortran/matchexp.c:693
0x68dc02 match_or_operand
        ../../trunk/gcc/fortran/matchexp.c:722
0x68dcd2 match_equiv_operand
        ../../trunk/gcc/fortran/matchexp.c:765
0x68dda4 match_level_5
        ../../trunk/gcc/fortran/matchexp.c:811
0x68d181 gfc_match_expr(gfc_expr**)
        ../../trunk/gcc/fortran/matchexp.c:870

Works with gcc-9 and earlier.


More information about the Gcc-bugs mailing list