[Bug fortran/93600] [10 Regression] ICE in gfc_match_assignment, at fortran/match.c:1366/1340

gscfq@t-online.de gcc-bugzilla@gcc.gnu.org
Wed Feb 5 19:26:00 GMT 2020


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

G. Steinmetz <gscfq@t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code

--- Comment #1 from G. Steinmetz <gscfq@t-online.de> ---

Related :


$ cat z2.f90
program p
   character(0), parameter :: c(0) = ''
   if ( size(c) /= 0 ) stop
   if ( len(c) /= 0 ) stop
   c%len = 'a'
end


$ gfortran-10-20200202 -c z2.f90
f951: internal compiler error: in gfc_match_varspec, at fortran/primary.c:2389
0x6ac1fd gfc_match_varspec(gfc_expr*, int, bool, bool)
        ../../gcc/fortran/primary.c:2389
0x6ac392 match_variable
        ../../gcc/fortran/primary.c:4038
0x67b0a6 gfc_match(char const*, ...)
        ../../gcc/fortran/match.c:1162
0x67c94c gfc_match_assignment()
        ../../gcc/fortran/match.c:1340
0x6a06e0 match_word
        ../../gcc/fortran/parse.c:65
0x6a06e0 decode_statement
        ../../gcc/fortran/parse.c:361
0x6a21da next_free
        ../../gcc/fortran/parse.c:1279
0x6a21da next_statement
        ../../gcc/fortran/parse.c:1511
0x6a4fa0 parse_executable
        ../../gcc/fortran/parse.c:5607
0x6a669f parse_progunit
        ../../gcc/fortran/parse.c:5877
0x6a7cd9 gfc_parse_file()
        ../../gcc/fortran/parse.c:6392
0x6f295f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:210


More information about the Gcc-bugs mailing list